[Interest] When does Qt load its plugins?

alexander golks alex at golks.de
Wed Jul 13 14:00:01 CEST 2016

Am Wed, 13 Jul 2016 12:37:22 +0200
schrieb Elvis Stansvik <elvstone at gmail.com>:

> 2016-07-13 12:34 GMT+02:00 Elvis Stansvik <elvstone at gmail.com>:
> > I'm working on packaging an application using QtWidgets as an AppImage
> > and I'm looking at which of the Qt plugins I must bundle.
> >
> > 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?  
> To clarify, I wasn't only talking about imageformat plugins, but
> plugins in general. The imageformat plugins was just an example where
> I suspect they may be loaded as late as possible?
> Elvis
> >
> > In short I'm wondering if I must use every nook and cranny of the
> > application during my strace run, to catch all plugins, or if it's
> > enough to say wait until the QApplication and QMainWindow is up.
> >
> > Thanks in advance,
> > Elvis  

i would not use strace to get a packaging list for the plugins to deploy.
simply use the plugins you want/need.

plugins are loaded when requested first time. so its not safe to wait 
until QApplication and QMainWindow are up.

> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160713/85e67c92/attachment.sig>

More information about the Interest mailing list