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

Clarify how to override automatic plugin generation

XMLWordPrintable

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

      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

        For Gerrit Dashboard: QTBUG-111577
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes