PDA

View Full Version : static exe image issues



premroxx
29th September 2011, 00:22
I compiled Qt statically. the exe has some images. It works perfectly fine on the computer where my original program is. I copied the exe to different folder along with QtCore4.dll & QtGui4.dll & it still works perfectly fine. The problem happens when i copy the exe into a different computer. The exe works fine but it doesn't display the images. I am not sure why this is happening? the images are stored in a qrc file so i don't think that is the issue

Thank You

Prem.

cincirin
29th September 2011, 07:57
Maybe this thread (http://www.qtcentre.org/threads/42835-Image-in-QLabel-not-being-displayed?p=195927&highlight=#post195927) will help you

ChrisW67
29th September 2011, 08:19
If you need the DLLs then your application has not been built/linked with a static Qt to make a static executable. In any case, you need the imageformat and/or iconengine plugins for the image type(s) you are using.