void MainWindow::on_rules_triggered() { HelpWindow *helpWind = new HelpWindow(); helpWind->setModal(true); helpWind->show(); }