Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how to begin a plugin program
Qt 6.11 is out! See what's new in the release blog

how to begin a plugin program

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 2.3k 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.
  • J Offline
    J Offline
    JadeN001
    wrote on last edited by
    #1

    i am new in plugin programming.i am not getting any idea about how to start.i mean which type of project i should creat. i have tried to create project plugincreater from following page instruction :
    https://doc-snapshots.qt.io/qtcreator-extending/first-plugin.html

    but the way exaple suggested in this link:
    http://doc.qt.io/qt-5/qtwidgets-tools-styleplugin-example.html

    i am not finding any similarities in these two program.can u suggest me how to start .
    also i am getting error in #include <extensionsystem/iplugin.h> when using approach of first link.

    jsulmJ 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      What type of plugin do you want to create?

      The 2 types you show are very different types.
      The first one is to extend Creator with new features,
      the other is to make a new look for an app.

      Yet another one exists, plugin for Designer to allow
      new types of Widgets etc.

      So what is the goal ?

      J 1 Reply Last reply
      1
      • J JadeN001

        i am new in plugin programming.i am not getting any idea about how to start.i mean which type of project i should creat. i have tried to create project plugincreater from following page instruction :
        https://doc-snapshots.qt.io/qtcreator-extending/first-plugin.html

        but the way exaple suggested in this link:
        http://doc.qt.io/qt-5/qtwidgets-tools-styleplugin-example.html

        i am not finding any similarities in these two program.can u suggest me how to start .
        also i am getting error in #include <extensionsystem/iplugin.h> when using approach of first link.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @JadeN001 Did you take a look at this: http://doc.qt.io/qt-5/plugins-howto.html ?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        J 1 Reply Last reply
        1
        • mrjjM mrjj

          Hi
          What type of plugin do you want to create?

          The 2 types you show are very different types.
          The first one is to extend Creator with new features,
          the other is to make a new look for an app.

          Yet another one exists, plugin for Designer to allow
          new types of Widgets etc.

          So what is the goal ?

          J Offline
          J Offline
          JadeN001
          wrote on last edited by
          #4

          @mrjj hey thanks for reply.Actually initial task of mine is to just understand basic feature of plugins and how it works.so for that i want to make one small fresh plugin to understand its feature.u know just like a first step of beginning something. so just don't want to extend new feature on some existing app for now. so i think the second link is right for me. am i right?

          mrjjM 1 Reply Last reply
          0
          • J JadeN001

            @mrjj hey thanks for reply.Actually initial task of mine is to just understand basic feature of plugins and how it works.so for that i want to make one small fresh plugin to understand its feature.u know just like a first step of beginning something. so just don't want to extend new feature on some existing app for now. so i think the second link is right for me. am i right?

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by mrjj
            #5

            @JadeN001

            Hi
            Actually, maybe looking at using plugins for an app is even better
            https://doc.qt.io/qt-5.10/qtwidgets-tools-plugandpaint-app-example.html
            It shows how an app can add features via plugins.
            So it shows how one would do it for own app. very common use case and
            good intro to plugins.

            ps. plugins are DLLS/so files so a basic understanding of dll/so handling really helps understand.

            J 1 Reply Last reply
            0
            • jsulmJ jsulm

              @JadeN001 Did you take a look at this: http://doc.qt.io/qt-5/plugins-howto.html ?

              J Offline
              J Offline
              JadeN001
              wrote on last edited by
              #6

              @jsulm yes , I have some doubt on that :
              Q_PLUGIN_METADATA(IID "org.qt-project.Qt.Examples.PlugAndPaint.FilterInterface" FILE "extrafilters.json")

              what is "org.qt-project.Qt.Examples.PlugAndPaint.FilterInterface" ?
              what should be argument if i am designning my own small plugin program?
              what json file contain? Am i suppose to make it manually or it make automatically by plugins?
              where i found that json file?

              jsulmJ 1 Reply Last reply
              0
              • J JadeN001

                @jsulm yes , I have some doubt on that :
                Q_PLUGIN_METADATA(IID "org.qt-project.Qt.Examples.PlugAndPaint.FilterInterface" FILE "extrafilters.json")

                what is "org.qt-project.Qt.Examples.PlugAndPaint.FilterInterface" ?
                what should be argument if i am designning my own small plugin program?
                what json file contain? Am i suppose to make it manually or it make automatically by plugins?
                where i found that json file?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @JadeN001 It's an ID of your interface, see http://doc.qt.io/qt-5/qtplugin.html#Q_PLUGIN_METADATA
                Use what ever you want. Regarding JSON file: please check the link I provided before.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                J 1 Reply Last reply
                1
                • mrjjM mrjj

                  @JadeN001

                  Hi
                  Actually, maybe looking at using plugins for an app is even better
                  https://doc.qt.io/qt-5.10/qtwidgets-tools-plugandpaint-app-example.html
                  It shows how an app can add features via plugins.
                  So it shows how one would do it for own app. very common use case and
                  good intro to plugins.

                  ps. plugins are DLLS/so files so a basic understanding of dll/so handling really helps understand.

                  J Offline
                  J Offline
                  JadeN001
                  wrote on last edited by
                  #8

                  @mrjj thanks.I will try it.thanks again..

                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @JadeN001 It's an ID of your interface, see http://doc.qt.io/qt-5/qtplugin.html#Q_PLUGIN_METADATA
                    Use what ever you want. Regarding JSON file: please check the link I provided before.

                    J Offline
                    J Offline
                    JadeN001
                    wrote on last edited by
                    #9

                    @jsulm thanks... i will look into it.

                    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 Extensions
                    • Unsolved