[Qt-interest] QPixmap return null pixmap on VC
Alessandro Portale
alessandro.portale at trolltech.com
Thu Apr 9 12:54:16 CEST 2009
Hi,
I have two questions in order to narrow down what goes wrong:
- Was the <qtfolder>/plugins/imageformats/qjpeg[d]4.dll built?
- Would it work with a .png image?
Regards,
Alessandro Portale
OS Prog wrote:
> Hi,
>
> The code:
> QPixmap *pixmap1 = new QPixmap("images/scroll.jpg");
>
> returns a null pixmap when I build it with VC. The same code works when
> it is built with mingw.
> I tried to specify the whole path, like "QPixmap *pixmap1 = new
> QPixmap("C:/Work/SVN/Qt/VCProj/debug/images/scroll.jpg");", but it is
> the same.
>
> Where could be the problem?
>
> I just compiled the Qt SDK for Windows with "VC2008 Express"'s compiler
> in separate folder. The original folder is with mingw.
>
> Regards,
> Nikolay
More information about the Qt-interest-old
mailing list