[Question] How to get QWidget background transperent
Hey got a big problem.
Googled now for 4 hours and tryed alot of idears...
My problem is that i want to draw over another application.
last thing whats missing is that only the background of the QWidget is transparent without the childs.
this->setWindowOpacity(0.25);
is "working" but it also makes all other things that i draw onto the frame transperent.
anyone got a way to resolv that problem?
Re: [Question] How to get QWidget background transperent
Code:
QWidget::setStyleSheet("background-color: transparent;");
Re: [Question] How to get QWidget background transperent
You can set the stylesheet to your widget.
Code:
// Set window color transparent and border to none
myWidget->setStyleSheet("background-color: transparent; border: none;");
CHEERS
Re: [Question] How to get QWidget background transperent
hey thanks for your fast replay.
if i use: this->setStyleSheet("background-color: transparent; border: none;");
the Window is just completly black.
this is my code in constructor:
Code:
ui->setupUi(this);
this->setStyleSheet("background-color: transparent; border: none;");