try these
this->close();
MyMainWindow*p=(MyMainWindow*)this->parent();
p->f_max();
this->close();
MyMainWindow*p=(MyMainWindow*)this->parent();
p->f_max();
To copy to clipboard, switch view to plain text mode
or
{
MyMainWindow*p=(MyMainWindow*)this->parent();
p->f_max();
}
void child::closeEvent(QCloseEvent*)
{
MyMainWindow*p=(MyMainWindow*)this->parent();
p->f_max();
}
To copy to clipboard, switch view to plain text mode
or
MyMainWindow*p=(MyMainWindow*)this->parent();
connect(this,SIGNAL(destroyed()),p,SLOT(f_max()));
MyMainWindow*p=(MyMainWindow*)this->parent();
connect(this,SIGNAL(destroyed()),p,SLOT(f_max()));
To copy to clipboard, switch view to plain text mode
Bookmarks