Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104657

Custom ComboBox does not function properly with model passed from c++

    XMLWordPrintable

Details

    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mitch_curtis Mitch Curtis
              kevin.zhang Kevin Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews