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

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes