Qt 子窗口监听主窗口信号

Qt 子窗口监听主窗口信号(转载)

1 MainWindow *ptr = NULL;
2  
3 ptr = (MainWindow*)parentWidget();
4  
5 connect(ptr, SIGNAL(param_result(bool)), this, SLOT(param_add(bool)));
posted @ 2020-08-26 14:02  萧海~  阅读(515)  评论(0编辑  收藏  举报