Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76025 Specify the QML language and write a QML-to-C++ compiler
  3. QTBUG-95822

Support namespaced attached properties and singletons in qmlcompiler and qmlsc

XMLWordPrintable

    • Icon: Technical task Technical task
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 6.3
    • QML: Tooling

      Consider:

      pragma Strict
      import QtQml
      import TestTypes as T
      
      QtObject {
          id: self
          property date foo: self.T.BirthdayParty.rsvp
          property date bar: T.BirthdayParty.rsvp
          objectName: T.CppSingleton.objectName
      }
      

      All of this is legal, and lately QQmlJSTypePropagator can deal with it. However, it does not properly mark the import namespaces in the generated QQmlJSRegisterContent, and qmlsc crashes when trying to generate code for it.

      qmlsc should generate some working code.

        For Gerrit Dashboard: QTBUG-95822
        # Subject Branch Project Status CR V

            ulherman Ulf Hermann
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes