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

qmlsc: QQmlProperlyLists assignment to QML lists cannot be compiled

    XMLWordPrintable

Details

    Description

      Warning: listproperty-warnings.qml:19:48: Cannot assign binding of type QQmlListProperty<Controller> to QObjectList [incompatible-type]
              property list<Controller> controllers: cppModel.controllers
                                                     ^^^^^^^^^^^^^^^^^^^^
      Warning: listproperty-warnings.qml:19:68: Could not compile binding for controllers: cannot convert from QQmlListProperty<QObject> of CppModel::controllers with type Controller to QObjectList of QObjectList [compiler]
      Warning: listproperty-warnings.qml:29:52: Could not compile binding for text: Member foo of Controller of (component in /home/jopoikel/work/customer/build-qmlpropertylist-Desktop_Qt_6_5_0_GCC_64bit-Debug/src/listproperty-warnings.qml)::modelData with type Controller can be shadowed [compiler]
                          text: `Controller: ${modelData.foo}`
                                                         ^^^
      

      Attachments

        1. qtbug112227.zip
          3 kB
          Joni Poikelin

        Activity

          People

            qtqmlteam Qt Qml Team User
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: