Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.0.0
-
None
-
Change-Id: I03e4196ddfed07d0fe94acca40d5de8a6ce7f920
Description
When the platform integration gets created or its keys queried in QPlatformIntegrationFactory::create() and ::keys(), QCoreApplication::addLibraryPath() gets called. This call will invoke QFactoryLoader::update(), pulling in all the other available plugins too. This is obviously undesirable - the application may not either need any of the plugins, or the plugin might get loaded too early when the application is not fully constructed yet.
The problem is either in the platform integration side, as it calls addLibraryPath(), or in QFactoryLoader itself, because it probably shouldn't start loading the plugins when you add a library path to it.