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

qmlsc: QList<Foo*> cannot be resolved

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        1. sandbox.tar.xz
          1 kB
          Cajus Pollmeier

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: