Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94020

Embed .qmlproject files into CMake

    XMLWordPrintable

Details

    • User Story
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • Build System: CMake
    • None

    Description

      .qmlproject files are used in Qt Design Studio to define the user interface of a project. We should consider adding CMake API to process this file, and embed the files it specifies into an application.

      CMake API

      qt_add_qml_module() needs to handle .qmlproject files. Here, files in the .qmlproject with .qml, .js, .mjs suffixes will be handled as QML source files. Other files will be handled as binary resource files.

      qt_add_qml_module(someTarget
         PLUGIN_TARGET someTarget
         QMLPROJECT myproject.qmlproject
         ...
      )

      qt_target_qmlproject(someTarget
      myproject2.qmlproject
      )

      Behavior

      CMake should warn about using wildcards in .qmlproject.

      Implementation

      .qmlproject file format is not complicated. Anyhow, it is based on QML, so an implementation would probably need through a command line tool in Qt (qmlprojectc?)

      Attachments

        Issue Links

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

          Activity

            People

              kkohne Kai Köhne
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes