-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.4.0
The ButtonGroup example (https://doc.qt.io/qt-6/qml-qtquick-controls2-buttongroup.html#details ):
ButtonGroup {
buttons: column.children
}
Column {
id: column
RadioButton {
checked: true
text: qsTr("DAB")
}
RadioButton {
text: qsTr("FM")
}
RadioButton {
text: qsTr("AM")
}
}
produces this error message:
Warning: main.qml:13:19: Cannot assign binding of type QQmlListProperty<QObject> to QList<QObject *>
buttons: column.children
^^^^^^^^^^^^^^^
Error: main.qml:13:34: Could not compile binding for buttons: cannot convert from QQmlListProperty<QObject> of QQuickItem::children with type QQuickItem to QList<QObject *> of QList<QObject *>
buttons: column.children
^
Maybe this is out-of-scope because the alternative method using "ButtonGroup.group: radioGroup" works fine.
- resulted in
-
QTBUG-108155 QmlEngine complains binding of QmlListProperty to QList <QObject *>
-
- Closed
-
| For Gerrit Dashboard: QTBUG-107521 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 460776,2 | qmlcompiler: Fix false warning on binding of list types | dev | qt/qtdeclarative | Status: DEFERRED | 0 | 0 |
| 541734,3 | QmlCompiler: Allow conversion from QQmlListProperty to QList | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |