example was broken with the different sorting of the skins. Solved by

unregistering the skin factory of the support lib
This commit is contained in:
Uwe Rathmann 2022-08-29 10:28:38 +02:00
parent 4c190ffe49
commit 47fc994c70

View File

@ -141,6 +141,8 @@ int main( int argc, char* argv[] )
Qsk::addGraphicProvider( "shapes", new SkinnyShapeProvider() ); Qsk::addGraphicProvider( "shapes", new SkinnyShapeProvider() );
qskSkinManager->setPluginPaths( QStringList() ); // no plugins qskSkinManager->setPluginPaths( QStringList() ); // no plugins
qskSkinManager->unregisterFactories(); // get rid of the factories of the support lib
qskSkinManager->registerFactory( qskSkinManager->registerFactory(
QStringLiteral( "MySkinFactory" ), new MySkinFactory() ); QStringLiteral( "MySkinFactory" ), new MySkinFactory() );