Black flicker while resizing translucent Qt widget (only when Aero is enabled)?
Posted
by D.
on Stack Overflow
See other posts from Stack Overflow
or by D.
Published on 2010-02-15T22:47:24Z
Indexed on
2010/04/07
19:13 UTC
Read the original article
Hit count: 207
I have a top-level Qt widget with the FramelessWindowHint flag and the WA_TranslucentBackground attribute set. It has several children, each of which draws an image on it. They are not in a layout. Instead, I simply move them around when something changes (it is not user-resizable).
There are two states to the window - a big state and a small state. When I switch between them, I resize the window and reposition the children. The problem is that as the window resizes, a black box is briefly flashed on the top-level window before the images are painted over it.
The problem goes away if I disable Aero. I found brief mention of this problem being fixed in an article describing a new release of Qt (this release is long past), but it still doesn't work.
Any ideas why?
Thanks!
© Stack Overflow or respective owner