using QPixmap to load image not able to specify the path properly
QPixmap image;
image.load(":/icon.png");
or
image.load("icon.png")
using QPixmap to load image not able to specify the path properly
QPixmap image;
image.load(":/icon.png");
or
image.load("icon.png")
Regards
Kamal :)
------------------
You never expect what expects you.
How to display an image as i am unable to display an image on widget ..
Regards
Kamal :)
------------------
You never expect what expects you.
Hi,
Read that documentation about the Qt Resource Compiler and .qrc files. That compiles the images into the binary for you, then you should be able to access them using your original syntax.
As an alternative, simple be sure to specify an absolute path and make sure you've put the image file in the appropriate place on the emulator or real device.
Mark