QPoint QWidget::Pos() const
This property holds the position of the widget within its parent widget.
----------------------------------无比华丽的分割线------------------------------------------
QWidget * QWidget::parentWidget () const
Returns the parent of this widget, or 0 if it does not have any parent widget.
——Qt Assistant
像个链表,然后QPoint自己已经重载了加法运算符~
然后你会了么?