[Qt-interest] QWinWidget's pos() always returns (0, 0)
Long Cheng
kevinclcn at gmail.com
Wed May 26 05:24:46 CEST 2010
I tried to change QWinWidget's position by calling pWinWidget->move(50, 50),
but after that the position returned by pWinWidget->pos() was still (0, 0);
QWinWidget* pWinWidget = new QWinWidget(pCView);
pWinWidget->move(50, 50);
QPoint pos = pWinWidget->pos(); //****NOTE: the pos equals to (0, 0)*****
The code is based on Qt 4.5.2
Thanks,
Long
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100526/dbe9dd9c/attachment.html
More information about the Qt-interest-old
mailing list