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

qmlsc: can't find enums on singletons

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.8
    • 6.6.3, 6.7.0
    • QML: Compiler
    • None

    Description

      Fllow up of QTBUG-123225, so I just attached the example of that issue. Enums are not recognised from qmlsc, but are at runtime:

      Warning: Main.qml:12:30: Member "State" not found on type "StateTest" [missing-property]
                      console.log(StateTest.State.CONNECTED)
                                             ^^^^^
      Warning: Main.qml:12:30: Could not compile function test7: Cannot load property State from StateTest of StateTest. [compiler]
                      console.log(StateTest.State.CONNECTED)
                                             ^^^^^
      

      .

      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
            cajus Cajus Pollmeier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes