View Full Version : Can we restrict the movement of a Qt Window?
Frank J. Lhota
14th October 2008, 17:18
Under X11, is it possible to restrict the movement of a Qt window? Is it possible to completely prevent a window from being moved?
Boron
14th October 2008, 18:24
What about moving the window back to its previous position?
Read this: http://doc.trolltech.com/4.4/qwidget.html#pos-prop (and read the Warning carefully).
aamer4yu
15th October 2008, 06:24
If your case is simple, you can also try different types of windows which dont move - tooltip / splash screen.
Frank J. Lhota
21st October 2008, 15:42
What about moving the window back to its previous position?
Read this: http://doc.trolltech.com/4.4/qwidget.html#pos-prop (and read the Warning carefully).
I found a way to do this using a Qt event filter. This event filter does not actually filter any events. It does, however, looks at the move events and moves any window back to its initial location. Thanks.
maverick_pol
21st October 2008, 20:34
Hi,
1.Ignore move/change pos events ?
2. Create a tooltip style widget which can't be move; like, creatin a dialog and setting a flag to look as tooltip>
SOme ideas.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.