Qt 子窗口监听主窗口信号(转载)
1 MainWindow *ptr = NULL;
2
3 ptr = (MainWindow*)parentWidget();
4
5 connect(ptr, SIGNAL(param_result(bool)), this, SLOT(param_add(bool)));
1 MainWindow *ptr = NULL;
2
3 ptr = (MainWindow*)parentWidget();
4
5 connect(ptr, SIGNAL(param_result(bool)), this, SLOT(param_add(bool)));