I am trying to close an MDI child (MainWindow is its parent), and I just cannot make it happen. All that is happening, is that all controls are getting removed from the MDI child, but the actually window is not getting removed from the 'mdiArea'.
With my QDialog (the MDI child), I call close. That didn't work, so as well as calling close, I also tried calling:
ui->mdiArea->removeSubWindow(mdiChildDialog);
Again, same results:
Thanks in advanced.