C++ (Qt)class CustomMainWindow : public QMainWindow{ Q_OBJECT... signals: void signalMainWindowShown(); protected: void showEvent(QShowEvent * event);...}; void CustomMainWindow::showEvent ( QShowEvent * event ){ emit signalMainWindowShown();}
bool MainWindow::event(QEvent *p_event){ if( p_event->type() == QEvent::ShowToParent) emit SigShow(); return QWidget::event(p_event);}
void CustomMainWindow::showEvent ( QShowEvent * event ){ emit signalMainWindowShown();}
void CustomMainWindow::showEvent(QShowEvent *){ ...}