[Qt-interest] pixel errors in QListWidget when setting Qt::WA_NoSystemBackground

Markus Franke Franke.M at sebakmt.com
Fri Jun 10 15:58:06 CEST 2011


Dear all,

I am observing strange pixel errors within the icons of items of a 
QListWidget. (see attached screenshot)

Basically I am creating a QDialog derived class which holds the 
QListWidget. In order to get correct "rounded corners" for the dialog I am 
drawing the whole dialog by myself. The pixel errors in the screenshot 
attached appeared when I enabled the Qt::WA_NoSystemBackground flag for 
the QDialog. If I remove this flag the images get displayed correctly 
again but unfortunately the "rounded corners" will then be wrong. Below 
the QListWidget I added a QLabel with the same icon as in the QListWidget 
and there the problem does not occur. 

Furthermore, the problem only can be observed for the QWS version of Qt 
Everywhere 4.6.3. The X11 version does not show this behaviour.

Thanks for any comments on this,

Markus Franke

PS.: I sent this message to both lists because I think it's somewhat 
related to both versions of Qt.




"Disclaimer: This message is intended only for the use of the individual 
or entity to
which it is addressed and may contain information which is privileged, 
confidential, proprietary,
or exempt from disclosure under applicable law. If you are not the 
intended recipient or the person
responsible for delivering the message to the intended recipient, you are 
strictly prohibited from
disclosing, distributing, copying, or in any way using this message. If 
you have received this 
communication in error, please notify the sender and destroy and delete 
any copies you may have
received."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110610/e699cdfb/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dialog.png
Type: application/octet-stream
Size: 5907 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110610/e699cdfb/attachment.obj 


More information about the Qt-interest-old mailing list