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

QSequentiableIterable from a QVariant passed through QML loses valueMetaType info

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • 6.2.1
    • None

      When constructring a QSequentialIterable from a QVariant gotten from QML, the iterable valueMetaType is always QVariant.

      Attached is an example demonstrating the issue (and showing the correct behavior with a QVariant that hasn't transited through QML).

      The usecase is having a `QVariant` property that can be binded to any sequence (or associative) container and know the contained type (even with no element in the container) and iterate over the container.

        1. main.cpp
          1 kB
          Pierre-Yves Siret
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            grecko Pierre-Yves Siret
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes