Use of json file in plugin for own application
-
wrote on 5 Jun 2018, 06:35 last edited by hjohn 6 May 2018, 06:36
I know that json file contain metadata of plugin.but in QDocument examples echoplugin & plug and pain,the json file is empty and
it works fine,as i know that the metadata is required to access the plugin outside of project. -
I know that json file contain metadata of plugin.but in QDocument examples echoplugin & plug and pain,the json file is empty and
it works fine,as i know that the metadata is required to access the plugin outside of project.@hjohn
and the question is? -
@hjohn
and the question is?wrote on 5 Jun 2018, 10:28 last edited by@raven-worx Is it necessary to create .json file,if so,then in which case
-
@raven-worx Is it necessary to create .json file,if so,then in which case
Moderatorswrote on 5 Jun 2018, 10:53 last edited by raven-worx 6 May 2018, 10:56@hjohn
basically it can be left empty or left out completely.
In case you want to load a bunch of your custom plugins you can get the data (compiled into the plugin) using QPluginLoader::metaData() -
@hjohn
basically it can be left empty or left out completely.
In case you want to load a bunch of your custom plugins you can get the data (compiled into the plugin) using QPluginLoader::metaData()wrote on 8 Jun 2018, 17:29 last edited by hjohn 6 Aug 2018, 17:30@raven-worx json file contain meta data.but in Which situation u have to mention meta data of plugin in .json file.
Is it just kind of only information to just knowledge or we have to declare it before loading plugins. -
@raven-worx json file contain meta data.but in Which situation u have to mention meta data of plugin in .json file.
Is it just kind of only information to just knowledge or we have to declare it before loading plugins.@hjohn
Again, you dont have to. When you dont know what to put in there you dont need it even more ;)
This can be of an aid if you need additional data to identfy a plugin without loading it. -
@hjohn
Again, you dont have to. When you dont know what to put in there you dont need it even more ;)
This can be of an aid if you need additional data to identfy a plugin without loading it.wrote on 9 Jun 2018, 04:49 last edited by@raven-worx okay thanks..:)
1/7