[Qt-interest] Images only showing on machine software was originally written on
Robert Wood
robert.wood at apostrophe.co.uk
Tue May 24 18:49:32 CEST 2011
On 24/05/11 17:42, Eric Clark wrote:
> To be exact, you need to place the image plugin dlls in your bin (executable's) directory under a sub-directory called "imageformats". The dlls you need are located in your Qt directory under Qt/plugins/imageformats.
Should the images not show up in the program if you run it from Creator
though?
>> Right but you don't need to do this if:
a) your images are PNGs
b) they are stored in your resource file properly, which is compiled
into your application
I suspect his images are not making it into his resource file (if he is
now using PNG images).<<
The images are definitely in the resource file, and the .pro files says:
RESOURCES += \
images.qrc
I *think* I have done this exactly the same as a previous project where I had images and the resource file worked.
Maybe I need to redo my .ui file from scratch with only PNGs.
Thanks for all suggestions!
More information about the Qt-interest-old
mailing list