0

Within the Qt application I created, I added a .jpeg image.

When I run the application on any other system other than mine, I do not see the image in the app window.

How do I rectify this issue ?
I am not well versed with Qt, so please give me a simple and easy way out of this issue.

ymoreau
  • 3,402
  • 1
  • 22
  • 60
Daylite
  • 499
  • 1
  • 7
  • 19
  • 2
    Did you properly install the image format plugins? http://stackoverflow.com/questions/12800346/showing-jpg-image-with-qt-does-not-work-with-release-executable – Andreas Fester Mar 17 '14 at 19:04
  • Where are you loading the image from? If you're loading the image from a file, you need to make sure the image is available on your target machine as well. – deGoot Mar 18 '14 at 03:51
  • I did that. I put my image in the same folder as the executable, but it doesn;t work. – Daylite Mar 18 '14 at 07:30
  • How do you locate the image? (Relative paths are fragile as they rely on the working directory - better use QApplicationDirPath() + “image.png” or bundle it as Qt resource. – Frank Osterfeld Mar 18 '14 at 08:04
  • I tried to add a resource file. But thats where I faced issue. Is there any link which gives a pictorial step-by-step on how to add/use a resource file, for AT 5.x? – Daylite Mar 18 '14 at 09:08
  • Qt docs explain it pretty well – Kamil Klimek Mar 27 '14 at 10:27

0 Answers0