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

QML combobox model not working properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4
    • None
    • Android, macOS

    Description

      Found this issue, while trying the QML Recorder example in Multimedia in dev:

      https://doc.qt.io/qt-6/qtmultimedia-multimedia-video-recorder-example.html

      It looks like something goes wrong when applying the model to the Combobox because the Combobox accepts the model but reports it as not having any element (count() returns 0)

      The model used in the Combobox is a QList<QCameraDevice>, with QCameraDevice being a Q_GADGET. But it does not appear in the Combobox model as QVariantList but as QVariant(QList<QCameraDevice>).

      Happens in Android and macOS, the ones that I tested. Untested in other platforms.

       

       

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              samuelmira Samuel Mira
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes