Q_PLUGIN_METADATA(IID "descComponentIID" FILE "file.json")
How to utilize the json file for configuring a component. My Purpose is to store the configuration of a component like if its a paint canvas component then storing the size of the canvas or the background colour of the component?
//Suppose A JSON file is created Example Test.json
{ "Name" : "Test", "Version" : "1.0.1", "CompatVersion" : "1.0.0", "Vendor" : "My Company", "Copyright" : "(C) 2016 MyCompany", "License" : [ "This is a default license bla", "blubbblubb", "end of terms" ] }
//Now Access metadata with the PluingLoader Which is used to load the
QJsonObject QPluginLoader::metaData() const
//The QJsonObject can be resursively traversed and QJsonValue can be
QJsonValue take(QLatin1String key)