Hi All,
Part of my program loads an image (a jpg) from the web and displays it on a QLabel.
This is the important bit of code;
Qt Code:
pixmap->loadFromData( buffer->buffer() ); labelIcon->setPixmap( *pixmap );To copy to clipboard, switch view to plain text mode
Now, this seems to work great on Linux, but not at all on Windows. I wrote the data in the buffer out to a file on both Linux and Windows and they are identical files. They show fine in all the image viewers I tried. I also tried with a a few different images from the web to make sure it was not a problem with onc specific image.
Next thing I tried was writing the buffer to a temporary file and re-loading it into the pixmap using pixmap->load( filename ). This worked great on Linux, and again not on Windows.
I know there was a similar thread before, and the conclusion was that it was a bug in QT, but when I checked that bug on the Trolls site, it was listed as Rejected (verified as working on all platforms).
Can anyone make a suggestion as to where I am might be going wrong, or a work-around I could use to get this working in Windows?
I tried with QT 4.3.2 and then 4.3.5 on Windows
Am using QT 4.3.4 on Linux.
Bookmarks