Maurice,

We deployed the application with the qjpeg plugin (we know it works because
other jpg's work fine).
We use the same piece of code that you gave as an example in our
application. The qfile::readAll() was just to see what exactly was causing
the problem.
The qDebug output of readAll() is "ÿØÿà . We also still have like 80MB ram
free on the device so I doubt it's a memory related problem.

Regards
Matthias
On Mon, Apr 28, 2008 at 4:06 PM, Maurice Kalinowski <[EMAIL PROTECTED]>
wrote:

> 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
>
_______________________________________________
Qtce-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qtce-preview-feedback

Reply via email to