Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Problem with link resources to executable file
I have a problem with resources link. I have a splash screen in my app (and other pictures). Resources.qrc file has all of them. In pro-file I have follow line:
@RESOURCES = ./resources/resources.qrc@
In main.cpp file I do follow:
@int main(int argc, char *argv)
QApplication app(argc, argv);
And it works properly on my laptop. But when I execute my app on other machine I have no resources loaded...
Could you tell me what I do wrong?
Thanks in advance!
The same behavior without line
Also I tried to compile my project with VS2008 (using special Qt build and vs-addin). And again this problem: it works properly on my laptop and there no images on other machines.
sagod last edited by
How about using png images? It's work for me :)
vsorokin last edited by
Really, you must provide Qt JPEG plugin(libqjpeg.so or libqjpeg.dll) with your app, if you want work with JPEG images.
sagod, thank you, png works.
Vass, what exactly I should do to use jpeg? Where I can found this plugin?
tzander last edited by
Qt has image plugins which are enabled for compilation when it finds the appropriate system library. In this case libjpeg.
If the loading of the jpeg does not work on that machine then you are missing the jpeg library and if you compiled Qt yourself you may need to recompile Qt. On Linux you need something like libjpeg62-dev. If you are using something else, google for it or tell us what system you have and you may get lucky that someone else is running it that reads this thread :)
Oh, recompile... Again... :)
I use Win XP. And as I understand I should configure Qt with -qt-libjpeg key. Do I need something else to get it done?