代码片段:
- //信号绑定槽函数写法:
- connect(ui->ActIllstrate, SIGNAL(triggered()), this, SLOT(on_DescriptionWindow()));
- //槽函数写法:
- void MainWindow::on_DescriptionWindow()
- {
- descriptionWidget *descriptionW = new descriptionWidget;
- descriptionW->setWindowModality(Qt::ApplicationModal);
- descriptionW->show();
- }
|