Hi,
Matthias Van Woensel wrote:
> Attached to this email you'll find a JPG file which opens fine in any
> imagebrowser (except for Qt on wince).
> When a QFile::readAll() is done on the file on qtce it fails to read
> the data (tested on both WM5 and WM6).
>
Unfortunately I was not able to reproduce this issue here.
Do you deploy the jpeg imageformat plugin to the device to be able to
display images of this format?
You can do this automatically by adding
DEPLOYMENT_PLUGIN += qjpeg
to your pro file and then recreating the visual studio project.
Furthermore I am a little bit concerned why you use QFile::readAll() for
displaying an image. Though I have tried that too, the usual way would
be something like:
QPixmap pixmap("GP_1.jpg");
if (pixmap.isNull()) {
qDebug() << "Invalid image";
return -1;
}
QLabel* imageLabel = new QLabel;
imageLabel->setPixmap(pixmap);
imageLabel->show();
Do you get any error messages while debugging? The only situation I
could think of so far is that your device is running out of memory as
the image is rather big?
Best Regards,
Maurice Kalinowski
_______________________________________________
Qtce-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qtce-preview-feedback