在写主窗口的时候建立连接啊!这样对话框发出的信号主窗口就能收到了。。- -
假设你那个对话框中的按钮是button1:
void MainWindow::showHelp()
{
if (!helpWindow){
helpWindow = new HelpWindow(this);
connect(this->helpWindow->button1, SIGNAL(clicked()), this, SLOT(show()));
}
helpWindow->show();
helpWindow->raise();
helpWindow->activateWindow();
}