is there anyway not to lose focus of QMessageBox to Mainwindow unless it is closed first?
Qt Code:
QMessageBox msgBox; msgBox.setText(trUtf8("")); msgBox.setInformativeText""); msgBox.exec(); //??? if(msgBox.clickedButton() == myNoButton) { qDebug() << "no"; return; } else { system("sudo shutdown -hf now"); }To copy to clipboard, switch view to plain text mode
Bookmarks