Qt-interest Archive, July 2007
Widget show issue.
Message 1 in thread
Hey trolltechs,
Here is a piece of code
QPoint point = mClientView->.mapToGlobal(QPoint(0,0));
mNewAccountView.move(point.x() - mNewAccountView.width() - 18, point.y());
mNewAccountView.setFixedWidth(200);
mNewAccountView.setWidget(mNewMasterWidget);
mNewAccountView.show();
mNewAccountView.update();
As you can see I'm moving a widget and then setting it visible.
Even after show and update call, the window won't move to the new location, just as if it wasn't repaint.
Is there an instant move function method ?
Thanks.
Mr AreNow.
Message 2 in thread
window (top level) widget?
in case try bypassing the windowmanager,
QWidget(0, Qt::X11BypassWindowManagerHint)
managed windows are usually placed by the WM - at least on X - you'll have a
hard job taking control over palcement once the windowmanager has it (you can
also try bypassing the wm fist, move, show and then erase the flag - but
that won't necessarily work everywhere)
Thomas
Am Sonntag, 22. Juli 2007 20:00 schrieb bunjee:
> Hey trolltechs,
>
> Here is a piece of code
>
> QPoint point = mClientView->.mapToGlobal(QPoint(0,0));
>
> mNewAccountView.move(point.x() - mNewAccountView.width() - 18, point.y());
>
> mNewAccountView.setFixedWidth(200);
>
> mNewAccountView.setWidget(mNewMasterWidget);
>
> mNewAccountView.show();
>
> mNewAccountView.update();
>
>
>
> As you can see I'm moving a widget and then setting it visible.
>
> Even after show and update call, the window won't move to the new location,
> just as if it wasn't repaint.
>
>
> Is there an instant move function method ?
>
>
>
> Thanks.
>
> Mr AreNow.
--
[ signature omitted ]