You have to copy $(QTDIR)/bin/plugins/imageformats to $(MYAPPDIR)/imageformats
(see my stackoverflow answer: 
http://stackoverflow.com/questions/4047366/qt-dll-deployment-on-windows/4049823#4049823
 )

Best regards
Helmut Mülner

> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im
> Auftrag von Michael Jackson
> Gesendet: Donnerstag, 07. März 2013 16:49
> An: [email protected]
> Betreff: [Interest] Image Format plugins not loading on windows
> 
> I have some code in Qt where I am loading a tiff image file. I have placed all
> the folder "plugins/imageformats/*" from my Qt Build into the same
> directory as my executable file. When I try to load the QImage
> image(path_to_tiff) I get a null QImage object back. Checked by using
> image.isNull() method.
> 
>    The path to the file does exist. This same setup works fine on another
> development machine but not this one. I even tried putting a qt.conf file in
> with my executable and that did not seem to help.
>   Is there some Qt function to query any possible errors that might have
> occurred when my program tried to load the Qt image plugins?
> 
>  This on machines with Windows 7 x64 with Visual Studio 2010 SP1 and a self
> built Qt 4.8.4.
> 
> Thank you for any help.
> ---
> 
> Mike Jackson
> _______________________________________________
> Interest mailing list
> [email protected]
> http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to