[Qt-interest] Trying To Understand Transparent Background

Cheung Yik Pang yp.cheung at valueplatforms.com
Fri Oct 2 11:57:25 CEST 2009


Hi all,

I have a questions about using transparent color as background color of 
widgets.

My little test program basically move a blue widget around in a 
transparent widget for every 5 seconds.  Both widgets had 
autoFillBackground set to true.

My expectation is that when the blue widget moved from area A to area B 
in the parent widget, area A will be cleared with transparent color and 
area B will be blue.  But what I get is both area A and area B became blue.

I have tried the new 4.5.3 and the 4.6 git head on Windows.  Both have 
the same result.

Have I missed something in the API documentation?

Thanks in advance.

Regards,
Cheung
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transparent_bg.zip
Type: application/zip
Size: 1787 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091002/35928a7c/attachment.zip 


More information about the Qt-interest-old mailing list