Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
how to begin a plugin program
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 :
but the way exaple suggested in this link:
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.
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 ?
@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?
Actually, maybe looking at using plugins for an app is even better
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.
@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?
@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.
@mrjj thanks.I will try it.thanks again..
@jsulm thanks... i will look into it.