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

Clarify how to override automatic plugin generation

    XMLWordPrintable

Details

    • f0f274e35 (dev), 25720a9fe (6.5), 759a2ecc6 (tqtc/lts-6.2)

    Description

      https://doc.qt.io/qt-6/qqmlengineextensionplugin.html says that, if we manually subclass QQmlEngineExtensionPlugin, we must pass NO_GENERATE_PLUGIN_SOURCE to the qt_add_qml_module(). However, this alone is insufficient because qt_add_qml_module() separates the backing target and the plugin target by default.

      The docs should also clarify that using NO_GENERATE_PLUGIN_SOURCE means that:

      • We must now link to the "backing" target, not the auto-generated plugin target
      • The plugin can no longer be be optional

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              skoh-qt Sze Howe Koh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes