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

[QML] Property of QVariantMap cannot be found

XMLWordPrintable

    • All
    • a142873d1 (dev), 01cb70002 (6.5)

      Using a construct like

      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          property int tst: moo.data.value
      
          Foo {
              id: moo
          }
      }
      

      runs into

      Warning: main.qml:10:32: Property "value" not found on type "QVariantMap"
          property int tst: moo.data.value
                                     ^^^^^
      Error: main.qml:10:32: Could not compile binding for tst: Cannot load property value from QVariant of Foo::data with type QVariantMap.
          property int tst: moo.data.value

        1. loader.tgz
          1 kB
          Cajus Pollmeier
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            olivier.decanniere Olivier De Cannière
            cajus Cajus Pollmeier
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes