Hi,
I have QDialog as Base parent.And my direct child for that dialog is QPushbutton *pushButton.
I could retrieve the Qdialog through pushButton->parentWidget().
Now my QPushButton is not the Direct Child of QDialog.It is Child of QScrollArea which in turn is child of QDialog.
child child
QDialog->QScrollArea->QPushButton.
How can i get the QDialog through pushButton.
pushButton->parentWidget() in this case will return QScrollArea.
Any help would be appreciated.
Bookmarks