qt-interest@trolltech.com
[Top] [All Lists]

QLabel->SetPixmap problems

Subject: QLabel->SetPixmap problems
From: Angus Reid
Date: Mon, 19 Dec 2005 23:27:03 +0000 GMT
Hi all,

I'm having some trouble using the QLabel->SetPixmap
method in Windows. I'm using the GPL verison of Qt4.0,
compiling under MinGW. The following code is the
simplest example of what I'm doing:

#include <QApplication>
#include <QLabel>

int main(int argc, char *argv[])
{
        QApplication app(argc, argv);
        QLabel label;
        label.setPixmap(QPixmap(":/background.jpg"));
        label.show();
        label.showFullScreen();
        
        return app.exec();
} 

This works correctly on my development machine,
displaying background.jpg in the fullscreen label. On
every other machine I've tried it on it merely
displays an empty grey label. I have tried using both
external and resource .jpg files (it also makes no
difference whether the label is fullscreened or not).
My test machine (that this fails on) is a clean
Windows XP install, with QtCore4.dll, QtGui4.dll and
mingwm10.dll copied into the directory with the
application.

Any suggestions as to what is going wrong would be
appreciated.

Thanks, Gus


                
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>