QImage failure/Bug in windows
-
ok now i am here to introduce a QImage bug
ok lets take a quick example rather that all the big stuff what i did
Exmaple:
consider two windows os wina , winb
and consider the image viewer at http://doc.qt.digia.com/qt/widgets-imageviewer.html
when we compile this in wina and try to run the .exe file in winb
the Qimage will not load the image which we are passing and returns a NULL image
and i tried the same with my own code not at (http://doc.qt.digia.com/qt/widgets-imageviewer.html) i got the same error
so any one please help me
-
Hello,
When you copy the .exe, you also need to copy the image format plugin DLLs. They are in <Qt>\plugins\imageformats
-
[quote author="S.ANAND" date="1356782272"]Can you please say where can i found those[/quote]
C:<Qt>\plugins\imageformats(<Qt> is where you installed Qt)
Copy the DLLs into a "imageformats" subfolder, for your program. Like this:
C:<YourProgram>\yourprogram.exe
C:<YourProgram>\imageformats\qjpeg.dll