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

Dump type information for QML files

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.0, 6.10.0 Beta1
    • None

    Description

      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.

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            gpbeta Joshua GPBeta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes