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

QSequentiableIterable from a QVariant passed through QML loses valueMetaType info

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        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
            grecko Pierre-Yves Siret
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes