PDA

View Full Version : QApplication::clipboard() setImage/setPixmap bug



jonks
19th November 2010, 06:53
Hi

I'm finding that when I copy and image to the application clipboard using QClipboard::setPixmap or QClipboard::setImage and paste the image into another application, then I get the following anomaly:


http://imgur.com/sxhIC.png
Note: the 3 "testcard" pixels are not in the original image copied to the clipboard.
I added the arrows in a painting program to highlight the issue.

If I save the pixmap/image to disk instead of the clipboard, the 3 "testcard" pixels are not in the image on disk.

It happens with any image and the background does not appear matter.
(If I set the bg to solid white, then the anomaly still exists.)

So far I've only tested on Windows. Will attempt on Mac when I next get a chance.

Is this a bug or just me being stupid?