Solved Use of json file in plugin for own application
-
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? -
@raven-worx Is it necessary to create .json file,if so,then in which case
-
@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() -
@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. -
@raven-worx okay thanks..:)