Sorry if I bother you, but then it must be in your code. Last debug question (with your image):
#include <QtGui>
int main(int argc, char **argv)
{
bool result = image.load( "/qt/qtsdk-2009.01/qt/src/3rdparty/libtiff/html/images/smallliz.jpg" );
qWarning() << result;
lab.
setPixmap(QPixmap::fromImage(image
));
lab.show();
return app.exec();
}
#include <QtGui>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QImage image;
bool result = image.load( "/qt/qtsdk-2009.01/qt/src/3rdparty/libtiff/html/images/smallliz.jpg" );
qWarning() << result;
QLabel lab;
lab.setPixmap(QPixmap::fromImage(image));
lab.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
don't work? Here on my linux machine it works as expected.
Bookmarks