[Qt-interest] Move a top level QWidget under gnome
Dong Tiger
idlecat511 at gmail.com
Tue Feb 24 14:38:47 CET 2009
My program is google gadget for linux, actually. Gadgets are top level
windows without WM decoration.
So I implemented this drag&move mechanism to move gadgets around.
Other windows can be dragged from one display to another. And ggl-gtk works
correctly. I may have to
check how ggl-gtk does this.
2009/2/24 Thiago Macieira <thiago.macieira at trolltech.com>
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090224/1cc509c9/attachment.html
More information about the Qt-interest-old
mailing list