|
2010-03-14
, 18:13
|
Posts: 236 |
Thanked: 223 times |
Joined on Oct 2009
@ NE UK
|
#2
|
|
2010-03-14
, 19:11
|
Posts: 45 |
Thanked: 15 times |
Joined on Nov 2009
@ Barcelona, Spain
|
#3
|
I'm writting an app based in qt 4.6.1 ( not 4.6.2 yet )
and I'm having trouble when trying to load jpeg files from Qt, actually
when I query for the supported image formats in the n900 i get the following:
("bmp", "pbm", "pgm", "png", "ppm", "xbm", "xpm")
The code to query is :
qDebug() << QImageReader::supportedImageFormats();
and I'm loading the pixmap with
QByteArray data = reply->readAll();
QPixmap pix;
qDebug() << QImageReader::supportedImageFormats();
if ( pix.loadFromData(data,""))//extension_.toLatin1().data()) )
{
icon_ = QIcon(pix);
}
It works fine for pngs but not in jpeg. It works fine in the emulator of the sdk or with the same sources compiles in windows.
Do I need to do something to create a QPixmap from jpeg in the N900?
Regards