[Interest] When does Qt load its plugins?
elvstone at gmail.com
Wed Jul 13 20:14:06 CEST 2016
2016-07-13 17:48 GMT+02:00 Thiago Macieira <thiago.macieira at intel.com>:
> Em quarta-feira, 13 de julho de 2016, às 12:34:25 PDT, Elvis Stansvik
>> I'll run an strace while using the application, but I thought I'd also
>> ask here: When in general does Qt load its plugins? For some plugins
>> (such as the platform plugin), I expect it to be quite early. But what
>> about imageformat plugins, is there a policy that they be loaded as
>> late as possible?
> They are loaded when the respective QPluginLoader or QFactoryLoader is
> You have to look at each and every one of those to see when they are
> initialised. For example, the image format plugins are *all* loaded on
> application start, way before any of them is ever needed. The bearer plugin,
> on the other hand, is only loaded when needed.
Alright, I sort of suspected that was the case. But I realize now that
it's much better I read up on what each plugin does and determine if I
need it, instead of trying to deduce it from stracing.
> Thiago Macieira - thiago.macieira (AT) intel.com
> Software Architect - Intel Open Source Technology Center
> Interest mailing list
> Interest at qt-project.org
More information about the Interest