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?
↧