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

Add support for declarative type registration in Qbs

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.16.0
    • Component/s: Libraries: Qt
    • Labels:
      None
    • Technical Risk:
      Normal
    • Commits:
      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            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