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

QSequentiableIterable from a QVariant passed through QML loses valueMetaType info

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.1
    • Fix Version/s: None
    • Labels:
      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

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes