Under X11, is it possible to restrict the movement of a Qt window? Is it possible to completely prevent a window from being moved?
Under X11, is it possible to restrict the movement of a Qt window? Is it possible to completely prevent a window from being moved?
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).
Frank J. Lhota (21st October 2008)
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)
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.
wysotaQt allows you to use everything you want
--------------------------------------------------------------------------------
#if defined(Q_OS_UNIX) && defined(QT_DEBUG)
abort(); // trap; generates core dump
#else
exit(1); // goodbye cruel world
#endif
Bookmarks