void MainWindow::slotUpdateMenu(QMdiSubWindow *p){ MdiChild *pDoc = qobject_cast<MdiChild*>(p->widget());