3 ms·
I'm not exactly sure what you mean, but I think so, since the apps it worked with did load and save images.
by cm3 10y ago
I'm not exactly sure what you mean, but I think so, since the apps it worked with did load and save images.
- justinclift 10y agoNo worries. :) Putting time into a project recently, and we're going through the process of migrating from Qt4/Qt5 to Qt5-only. (this is so we can start using Qt5 only features) One of the differences between Qt4 and Qt5, is that while Qt4 has all of its supported image formats inbuilt Qt5 doesn't. It keeps them in separate shared libraries, which (for non-static applications) need packaging with the rest of the application. I haven't looked into whether they get compiled in with static ones though. It sounds like they might be, which would be useful for us, as people do request static builds occasionally. :)
- cm3 10y agoI'm just a user of Qt applications, so please don't take my comment to be authoritative. Experiment and conclude.
- justinclift 10y agoNo worries at all. :)
- rossy 10y agoWell, I just made a static build of a Qt 5.7 project that required the SVG image format plugin, so it's definitely possible. In qmake projects, it all happens automatically if you specify the plugins you use in the QTPLUGINS variable. In my case, I needed to add 'svg' to the QT variable. For non-qmake projects, I think you have to add Q_IMPORT_PLUGIN() macros to the source code of your program to "load" the statically linked plugins.