PDA

View Full Version : Qt 4.7.0 & Ubuntu 10.10: Cannot move application window out of desktop bounds



napajejenunedk0
26th April 2011, 13:32
Create a simple application and instantiate a QWidget to create a simple window. Move the widget inside the code to (-50, -50), let one of the coordinates be negative.
The result is that the window is positioned at (0, 0) instead of the requested position. This is observed using Linux (Ubuntu 10.10) and Qt 4.7.0.
This problem is not reproduced under Windows and Mac OS X.

So, the question is how to move the application window out of the desktop bounds inside the code under Linux?

Additional notes:
It is the window manager that constrains the application windows to leave the desktop area.
1) The application window can be partially moved out of the desktop by dragging it through the titlebar. In this case the titlebar is the only part of the application window that cannot leave the desktop area towards the Y axis of the screen.
2) Hitting alt + left mouse button click (anywhere in the application window area) and dragging the mouse produces the desired effect - the window manager grabs the window and moves it out of the desktop bounds. How to achieve this effect inside the code?