Maximka
21st February 2010, 12:57
Hi,
I have an application employing a QMainWindow object. There is also an object inherited from QDialog. On pressing certain key this dialog pops up in non-modal mode. But anyway it stays always on top, covering the main window, so I have always to move it aside. I tried to set in the constructor it's windowFlags (~Qt::WindowStaysOnTopHint) but it didn't help. How to make it going behind if focus is passed to the main window?
I have an application employing a QMainWindow object. There is also an object inherited from QDialog. On pressing certain key this dialog pops up in non-modal mode. But anyway it stays always on top, covering the main window, so I have always to move it aside. I tried to set in the constructor it's windowFlags (~Qt::WindowStaysOnTopHint) but it didn't help. How to make it going behind if focus is passed to the main window?