I was trying to create a style plugin for my project, the plugin seems being loaded, but why QStyleFactory::keys() didn't return my key? By setting QT_DEBUG_PLUGINS to 1, I got following message :
Found metadata in lib .../styles/libstyles.so, metadata=
{
"IID": "this.is.my.style",
"MetaData": {
"Keys": [
"mystyle"
]
},
"className": "MyStylePlugin",
"debug": true,
"version": 329986
}
in my main():
QApplication app(argc, argv);
QApplication::setStyle(QStyleFactory::create("mystyle"));
qDebug() << QStyleFactory::keys();
The last qDebug statement prints:
Got keys from plugin meta data ()
("Windows", "Fusion") <= Shouldn't "mystyle" also show up here?