Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1531

Add support for declarative type registration in Qbs

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 1.16.0
    • None
    • Libraries: Qt
    • None
    • 2382a5e8e917013725977b37bbe227d9a19b1d39 (qbs/qbs/master)

    Description

      https://codereview.qt-project.org/c/qt/qtdeclarative/+/290315/3/src/qml/doc/src/qmlfunctions.qdoc adds support for declaring a QML import in a .pro file in Qt 5.15:

      You can use the build system to register the type in the type namespace
      "com.mycompany.qmlcomponents" with major version \c 1 by specifying the
      following in your project file:

        CONFIG += qmltypes
        QML_IMPORT_NAME = com.mycompany.qmlcomponents
        QML_IMPORT_MAJOR_VERSION = 1
      

      Presumably Qbs will need to support this functionality to allow users to have control over the name of their QML modules.

      Attachments

        For Gerrit Dashboard: QBS-1531
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            mitch_curtis Mitch Curtis
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes