QWidget *QWidget::parentWidget() const Returns the parent of this widget, or 0 if it does not have any parent widget.