I have a widget with these flags and attributes:
To make the window always on top:Code:
setWindowFlags(Qt::SubWindow | Qt::FramelessWindowHint ); this->setAttribute(Qt::WA_TranslucentBackground); this->setAttribute(Qt::WA_TransparentForMouseEvents);
So when the app runs, the window is on top of every other window, but as soon as I click any other window it goes behind the windowI clicked.Code:
setWindowFlags(Qt::FramelessWindowHint | Qt::SubWindow | Qt::WindowStaysOnTopHint);
Why this behaviour?