Important: Please read the Qt Code of Conduct -

Building Qt shared libraries with static plugins

  • Can someone post links (or outline the process) that describes how to build Qt shared libraries (esp. DLLs for Windows) but with the predefined plugins (e.g. imageformats) built into the shared libraries? Thanks.

  • I don't know if that is possible, however I know there is a way to statically link to specific plugins, using Q_IMPORT_PLUGIN. The plugin DLL will be required for the application to properly run, so you should put them alongside your executable or in the PATH as you do with the Qt DLLs.

Log in to reply