[Qt-interest] problem with translucent windows.

Looki Angel lookias at yahoo.com
Wed Mar 11 11:30:54 CET 2009


hello :)
well, i got a translucent window in vista, but there are 2 problems.

1: the window must be frameless. windows with a frame just show a black background.

2: when i write:
QWidget w;
w.setStyleSheet("background:rgba(0,0,150,150)");
toplevelwidget.layout()->addWidget(w);
toplevelwidget.show();
i just see nothing, there is only a fully transparent window without a frame (because of point 1).

ok, i layout a QLabel to w and put a not fully opaque picture into this label, then i see a translucent and blue colored (because of the style sheet) picture, not more. 

is this the right behaviour? im a bit confused. i would like to add some transparency to my older program (written in qt443) but i dont want to lose the windowframe.

greets lookias





      




More information about the Qt-interest-old mailing list