The parent of all subwindows in a mdi area is QMdiArea::viewport(). This is inherited from abstract scroll area.
The viewport is a QWidget so you should write the cast accordingly.
The parent of all subwindows in a mdi area is QMdiArea::viewport(). This is inherited from abstract scroll area.
The viewport is a QWidget so you should write the cast accordingly.
KShots (16th October 2007)
Thanks, I was able to replace that with a simplewithin the closeEvent(QCloseEvent *) of the subwindow (to clean up before the thing is actually destroyed).Qt Code:
static_cast<formMainWindow *>(parent()->parent()->parent()->parent())->subWindowDestroyed(this);To copy to clipboard, switch view to plain text mode
Life without passion is death in disguise
Bookmarks