Hey trolltechs,
Here is a piece of code
mNewAccountView.move(point.x() - mNewAccountView.width() - 18, point.y());
mNewAccountView.setFixedWidth(200);
mNewAccountView.setWidget(mNewMasterWidget);
mNewAccountView.show();
mNewAccountView.update();
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();
To copy to clipboard, switch view to plain text mode
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.
Bookmarks