Qt::WindowCloseButtonHint on a certain window
-
Hello,
i have a Program that starts a QT (QMainWindow) when one clicks on a button.
I want the QT Program just to stay on top of this other window.
Qt::WindowCloseButtonHint makes a window stay on top all windows
@
w.setWindowFlags( Qt::WindowMinimizeButtonHint | Qt::WindowCloseButtonHint | Qt::WindowStaysOnTopHint);
@I have the HWND to the window that starts the QT Program.
Thanks.
-
whats your question after all?
-
ok, sry did got what you wanted.
In Qt you would do this: listen to the window activation event (e.g. with an event filter) on the base window and call QWidget::raise() for the widget/window you want to place above.
So in case your main application is not written in Qt you need to struggle with WinAPI accomplishing the same mechanism i described.