QWinWidget's position is always 0 (zero)

Posted by Kevin on Stack Overflow See other posts from Stack Overflow or by Kevin
Published on 2010-05-26T05:26:08Z Indexed on 2010/05/26 5:31 UTC
Read the original article Hit count: 226

Filed under:
|

I hosted a QWinWidget in a CView and want it to stay at a designated position when resizing. But QWinWidget always moves to (0, 0), i.e. left-top corner of the CView.

I tried to debug in this way:

QWinWidget* pWidget = new QWinWidget(pCView);
pWidget->move(50, 50);
QPoint pos = pWidget->pos();

Note that: the pos is always (0, 0).

Why is that?

© Stack Overflow or respective owner

Related posts about qt

Related posts about qt4