Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. what' the deference between QQmlEngineExtensionPlugin and QQmlExtensionPlugin
Qt 6.12 LTS is out! See what's new in the release blog

what' the deference between QQmlEngineExtensionPlugin and QQmlExtensionPlugin

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 767 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cq_qt
    wrote on last edited by cq_qt
    #1

    In qt6book-with-frontpage.pdf,
    page652,Extending QML with C++,talking about QQmlExtensionPlugin.
    28a5e1c3-1597-4bf5-8bca-e2d026cffdfa-image.png
    but page655, Creating the plugin, using QQmlEngineExtensionPlugin to create a qmlplugin.
    17381078-652f-4499-ba8c-f09535a9e7d4-image.png
    In fact,When I created a plugin by the wizard of QtQuick 2 QML ExtensionPlugin, the interface was QQmlExtensionPlugin.

    why? what‘s the diferece.

    JKSHJ 1 Reply Last reply
    0
    • C cq_qt

      In qt6book-with-frontpage.pdf,
      page652,Extending QML with C++,talking about QQmlExtensionPlugin.
      28a5e1c3-1597-4bf5-8bca-e2d026cffdfa-image.png
      but page655, Creating the plugin, using QQmlEngineExtensionPlugin to create a qmlplugin.
      17381078-652f-4499-ba8c-f09535a9e7d4-image.png
      In fact,When I created a plugin by the wizard of QtQuick 2 QML ExtensionPlugin, the interface was QQmlExtensionPlugin.

      why? what‘s the diferece.

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @cq_qt said in what' the deference between QQmlEngineExtensionPlugin and QQmlExtensionPlugin:

      what‘s the diferece.

      QQmlExtensionPlugin is older, QQmlEngineExtensionPlugin is the new replacement. The Qt engineers haven't yet added documentation on how to port from the old class to the new class, but they are planning to do that soon (see https://bugreports.qt.io/browse/QTBUG-95448 )

      If you are creating a new project, you don't actually need to write the QQmlEngineExtensionPlugin code yourself. CMake does it automatically for you now. See the note at https://doc-snapshots.qt.io/qt6-dev/qqmlengineextensionplugin.html#details

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      1
      • C Offline
        C Offline
        cq_qt
        wrote on last edited by
        #3

        thank you.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt
        • Unsolved