PDA

View Full Version : how can make the widget transparent



duduqq
24th June 2008, 11:27
how can make a widget like the http://doc.trolltech.com/qq/qq16-background.html
do someone can help me???

aamer4yu
24th June 2008, 11:49
You can try using QWidget::setPalette

window.setPalette(QBrush(Qt::NoBrush));

Hope this helps :)

profoX
24th June 2008, 13:24
I think it's easier to do something like:
widget.setStyleSheet("background-color: transparent;");
or for semi-transparency:
widget.setStyleSheet("background-color: rgba(0, 0, 0, 50%);");