[PyKDE] QLabel flashes on setPixmap
Gary Coulbourne
GCoulbourne at Immunicon.com
Mon Apr 19 15:34:01 BST 2004
What about, when you create your QLabel, doing this...
QLabel(parent,name,Qt.WNoAutoErase)
The "visually jarring" things you are seeing are caused by the background repainting before the rest of the image.
So, the background repaints to background color, then your label pixmap is drawn over that. By not repainting the background, your pixmap will be redrawn without first being cleared. This can have strange side-effects, though, if the pixmap is accompanied by text... you may have to modify the paintEvent so that it clears the text area by hand.
Peace,
Gary
This e-mail message is intended only for the personal use of the recipient(s) named above. This message should be considered a confidential communication, and as such is not subject to disclosure to anyone who is not an intended recipient. If you are not an intended recipient, you may not legally review, copy or distribute this message. If you have received this communication in error, please notify the sender(s) immediately by e-mail and delete the original message from your computer system.
More information about the PyQt
mailing list