[Qt-interest] Move a top level QWidget under gnome

Thiago Macieira thiago.macieira at trolltech.com
Tue Feb 24 08:43:40 CET 2009


idlecat511 at gmail.com wrote:
>Hi,
>
>In my program, I use QWidget::move() to set position of top level
> QWidgets on the desktop. This program works under KDE.
>But under Gnome on machines with multiple displays, there is a problem
> that I can't move a toplevel QWidget from one display
>to another.
>
>Any idea of that? Thanks in advance.

Can you do that to other applications' windows? Can you post a small 
example showing the problem?

In general, it's not a good idea to move top-level windows because you 
don't know whatever else is being displayed. Especially in the case of 
multiple displays (I've seen applications that jump to the wrong display 
when opening). Leaving the positioning up to the window manager is the 
recommended way.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090224/048352b2/attachment.bin 


More information about the Qt-interest-old mailing list