Maybe Qt::WindowStaysOnTopHint ?
It's a WindowFlag so you either pass it when you construct the window or set it later via setWindowFlags().
Maybe Qt::WindowStaysOnTopHint ?
It's a WindowFlag so you either pass it when you construct the window or set it later via setWindowFlags().
Last edited by momesana; 17th April 2008 at 16:20.
QWidget::setWindowModality might help you![]()
Thanks for the answer, but it's only for control a window for one application. I need control all windows in the Desktop of several application. When this window is on the screen the user only will can interact with this window and will not interact with others windows of other applications (the user we can't use them)
thanks!!!
Theoretically there is no way to do what you wantYou may try to cheat by making your window full screen, but as long as the user will be able to kill your application or use alt+tab, you won't be able to force him to stay within your app. So either intercept all events on the X server or cooperate with the window manager to lock the screen using its techniques (with KDE you can use dcop for that).
Bookmarks