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

Support namespaced attached properties and singletons in qmlcompiler and qmlsc

    XMLWordPrintable

    Details

    • Type: Technical task
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Fix Version/s: 6.3
    • Component/s: QML: Tooling
    • Labels:

      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

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            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