Dynamic resource loading not work in another computer
The version of Qt library I use is 4.2.2.
In my application, I create a rcc file,
rcc -binary xxx.qrc -o xxx.rcc
then in my code, I register the resource.
The image is displayed like this:
Code:
QPixmap logo
( ":/images/somelogo.JPG" );
yyy->setPixmap( logo );
And the rcc file is placed in the same directory as the executable. It works fine in my development machine.
But when I execute the application in another computer, the image disappears.(My application initializes successfully.) The executable and the rcc file are also in the same directory. Can anyone help me?:)
Regards,
GRUB
Re: Dynamic resource loading not work in another computer
You might be missing the JPG plugin on the other computer. Copy it from your $QTDIR/plugins/imageformats directory to imageformats subdirectory of where your binary lies on the target machine.
Re: Dynamic resource loading not work in another computer
:D
It does work! Thank you.