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

The ability to declare enumerations in QML doesn't work with Ahead-of-Time compilation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.11.0
    • Fix Version/s: 5.11.1
    • Component/s: QML: Compiler
    • Labels:
      None
    • Environment:
      Arch Linux
    • Commits:
      1aecb24682075cbb99f21a367c399387b12257d0

      Description

      Just see the application output of the attached project (qml-enumerations.zip):

      qrc:/MyText.qml:12: TypeError: Cannot read property 'Heading' of undefined
      qrc:/MyText.qml:11: TypeError: Cannot read property 'Heading' of undefined
      qrc:/MyText.qml:9: TypeError: Cannot read property 'Normal' of undefined

      If the qtquickcompiler option isn't specified, there aren't any errors.

        Attachments

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

          Activity

            People

            • Assignee:
              shausman Simon Hausmann
              Reporter:
              renom renom
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes