PDA

View Full Version : Qt::WindowStaysOnTopHint causes weird transparent partial window



ce_nort
31st March 2016, 15:44
I have a Mainwindow that opens up a child window (inherits QMainwindow as well) when a button is clicked. I was having issues with the parent window popping back on top of the child window in certain situations, so in the constructor of the child window I put
this->setWindowFlags(Qt::WindowStaysOnTopHint); . But now when I try to open the child window, it is a weird transparent half-window that is only visible where it overlaps with the parent window. The best way to describe how it looks is a glitch: 11842 Any idea what is going on here or how to fix it?