View Full Version : how can make the widget transparent
duduqq
24th June 2008, 10: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, 10:49
You can try using QWidget::setPalette
window.setPalette(QBrush(Qt::NoBrush));
Hope this helps :)
profoX
24th June 2008, 12: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%);");
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.