void MainWindow::aboutButtonClicked() { AboutWindow *aboutWindow = new AboutWindow(this); aboutWindow->setStyleSheet("QDialog{background-color:#1d2020}"); aboutWindow->setModal(true); aboutWindow->exec(); }
void MainWindow::aboutGame(){ AboutWindow aboutWindow; aboutWindow.setModal(true); aboutWindow.setStyleSheet("QDialog{background-image:url(:/Resource/images/Background.png)}"); aboutWindow.exec(); }