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.
QResource::registerResource( "xxx.rcc" );
To copy to clipboard, switch view to plain text mode
The image is displayed like this:
QPixmap logo
( ":/images/somelogo.JPG" );
yyy->setPixmap( logo );
QPixmap logo( ":/images/somelogo.JPG" );
QLabel *yyy = new QLabel;
yyy->setPixmap( logo );
To copy to clipboard, switch view to plain text mode
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
Bookmarks