Hi,

I searched and read alot of threads that talked about transparency. I actually tried lots of solution provided and then I ask you this :

What I want to achieve is a semi-transparent top level window with opaque or different transparency level children.

Now here's what I tried:

- setWindowOpacity() this is good but apply to children too so not what I want.
- Fill a QPixmap with Qt::Transparent and draw the pixmap and then draw other controls. This gives me the usual gray window without transparency.
- QPainter::setOpacity before QPainter::fillRect with an opaque color or only fillRect with a transparent color.

The latter two works if the floating window is a child of a main window but obviously, it get clipped if I try to move it outside of the main window.

Any way of doing it ? I'm using Qt 4.3.2 and Windows XP.


Another question unrelated. I tried setting backroung role like :

mainWindow->setBackgroundRole( QPalette:: Dark ); on my mainwindow and this doesn't do anything, any hints ?