Qt::WA_TranslucentBackground
-
I have change window attribute and look with
@setAttribute(Qt::WA_TranslucentBackground, true);
setWindowFlags(Qt::FramelessWindowHint);@and add some stylesheet code.
later I want to change back to normal style with
@this->setWindowFlags(Qt::Window);@
and this change back titlebar but this code
@setAttribute(Qt::WA_TranslucentBackground, false);@
didn't change and I have transparent some widgets and ugly paint on them.
How to get back with code?
-
what happens if you call repaint() on your main widget?
-
nothing...
-
hmm...seems you have to hide and show it again:
@
this->setWindowFlags(Qt::Window);
this->setAttribute(Qt::WA_TranslucentBackground, false);
this->hide();
this->show();
@ -
Not working, same issue...
-
What is 'normal' attribute for widgets? maybe it doesn't have any or it has buffered some
-
[quote author="ExtraLeonard" date="1366992858"]Not working, same issue...[/quote]
strange ... this worked for me. -
still not working