PDA

View Full Version : Image in QLabel not being displayed



P@u1
1st July 2011, 15:56
Hi everyone,

I added a QLabel in the designer and selected an image in the designer which I added to the resources (also with the designer).
The exe file was ~300kb bigger after that (as expected).
When I start the exe myself, everything is working.
When I start the same exe with another pc, the image is not being displayed.

Please help me :-)

cincirin
1st July 2011, 16:08
You should create "imageformats" directory on other PC near your executable, and copy necessary image plug-ins (jpeg or png or whatever your image is)

P@u1
4th July 2011, 10:47
Edit: I just recognized that I misunderstood you. I will try it now and give feedback later.
Edit2: Its working now!
Thanks!