Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.8, 6.2.4
-
6f9bf381b7 (qt/qtdeclarative/dev) 6f9bf381b7 (qt/tqtc-qtdeclarative/dev) e5322e158f (qt/qtdeclarative/6.4) e5322e158f (qt/tqtc-qtdeclarative/6.4) 4419d9eed8 (qt/tqtc-qtdeclarative/6.2) d346095a4a (qt/qtdeclarative/6.3) d346095a4a (qt/qtdeclarative/6.3.2)
Description
When passing a c++ model to qml and attempting to use it with a combobox defined in a custom object, the popup of the custom combobox does not show the model's items correctly.
The custom combobox works as expected with models natively defined within qml, and the c++ model works as expected with non-custom comboboxes.
See attached project.
QML debugging is enabled. Only use this in a safe environment. Binding on indicator is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id. qrc:/MyComboBox.qml:12:13: Unable to assign [undefined] to QString qrc:/MyComboBox.qml:12:13: Unable to assign [undefined] to QString qrc:/MyComboBox.qml:12:13: Unable to assign [undefined] to QString qrc:/MyComboBox.qml:12:13: Unable to assign [undefined] to QString qrc:/MyComboBox.qml:12:13: Unable to assign [undefined] to QString
Attachments
Issue Links
- resulted in
-
QTBUG-104806 Use textAt(index) in ComboBox delegate implementations and documentation
-
- Open
-