Image won't display
-
Hello!
Like in title I got problem with Image. I'm using QLabel and QPushButton. After adding icon, or Pixmap and building whole project in final app I see only buttons, but not images, any idea how solve it?
-
Hi, and welcome to the Qt Dev Net!
Does the image show when you run it from inside Qt Creator?
Assuming that your image is in JPEG format, did you include qjpeg.dll? See http://qt-project.org/wiki/Deploy_an_Application_on_Windows (the guide is written for Windows but the ideas apply to all platforms)
-
Hi and welcome to devnet,
Are you using a relative path to load your images ?
e.g.@QImage img("myCoolImage.png");@
If so, the program will look for it in the executable folder which is not the same as the folder you have your images in. You should either give the full path to the files or copy the files in the same folder as the executable.
Hope it helps
-
In Qt Creator everything look ok, but in .exe file i dont see images.
I add images to project, but i don't write anythink in actual code. I just move wigets and change options. All files are .png format. -
It was problem with paths. I have files in my project folder, but not in my release folder.
Thanks for advices.