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

qmlsc: QList<Foo*> cannot be resolved

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.4.2, 6.5.0 Beta1
    • QML: Compiler
    • None

      The attached example returns a list of objects known to QML using Q_INVOKABLE. The compiler does not know that type:

      Warning: main.qml:11:46: Could not compile binding for onCompleted: return type QList<Entry*> cannot be resolved [compiler]
          Component.onCompleted: console.error(Foo.entries())
                                                   ^^^^^^^
      

      Same for Q_PROPERTY.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtqmlteam Qt Qml Team User
            cajus Cajus Pollmeier
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes