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

Details

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

    Description

      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?

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes