I want to make a translucent window in Qt:
setWindowFlags(Qt::Popup| Qt::FramelessWindowHint);
setAttribute(Qt::WA_TranslucentBackground,true);
But Once I set the Qt::WA_TranslucentBackground
to true
, there will be white things on the four corners of each widget:
It appears whenever the mouse hover though the widget,or click on it.
How to avoid this ? If I set the Qt::WA_TranslucentBackground
to false
, the problem will be gone. But I need transparent window.
Thanks beforehand!