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

Error: Cannot generate efficient code for retrieving the metaType of a composite type without an element name.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.12
    • 6.8.1
    • QML: Compiler
    • None

      https://code.qt.io/cgit/qt/qtdoc.git/tree/examples/demos/coffee/ApplicationFlow.qml?h=6.8#n33

      this gives

          espresso: [ApplicationFlow.qml:38:5]
            result: Error: Cannot generate efficient code for retrieving the metaType of a composite type without an element name.
            duration: 585us 

      to avoid this error need to convert "alias" to the "explicitly property type".

      and use "id" to access the property, this I can understand because of the unqualified access.

      but why cannot use "alias"

      and is "alias" the same as "explicitly property type" internally?

       

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

            qtqmlteam Qt Qml Team User
            jiu shanheng jiu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes