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

Dump type information for QML files

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.11
    • 6.0, 6.10.0 Beta1
    • QML: Tooling
    • None

      We have a project that shipping AOT compiled QML modules to the 3rd party developers, since some of the QML source files are not shipped and also stripped from the qrc, we need a full plugin.qmltypes file which contains not only the C++ but also the QML type information, in order the make the code-completion etc. work properly.

      The qmlplugindump tool working great in Qt 5 is deprecated now, what's worse, it seems that the default QML plugin implementation provided by qt_add_qml_module() does not call the qmlRegister*() function templates to actively register the metatypes for the QML files, so that there's nothing the qmlplugindump can do either for the CMake generated plugins.

      Will there be a successor to qmlplugindump?

      If not, I hope qt_add_qml_module() would add a new option which forces CMake to generate a full plugin.qmltypes file containing type information for the QML files.

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

            qtqmlteam Qt Qml Team User
            gpbeta Joshua GPBeta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes