bunjee
22nd July 2007, 19:03
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.
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.