QObject::tr("Text in my dialog box."),
0,
Qt::Dialog | Qt::WindowStaysOnTopHint );
pMessageBox->setModal(false);
pMessageBox->show();
//pMessageBox->activateWindow();
//connect(pMessageBox, SIGNAL(closeEvent()), this, SLOT(exitApp()));
connect(pMessageBox, SIGNAL(destroyed()), this, SLOT(exitApp()));
QMessageBox* pMessageBox = new QMessageBox(QMessageBox::Information,
QObject::tr("My Software"),
QObject::tr("Text in my dialog box."),
QMessageBox::Ok,
0,
Qt::Dialog | Qt::WindowStaysOnTopHint );
pMessageBox->setModal(false);
pMessageBox->show();
//pMessageBox->activateWindow();
//connect(pMessageBox, SIGNAL(closeEvent()), this, SLOT(exitApp()));
connect(pMessageBox, SIGNAL(destroyed()), this, SLOT(exitApp()));
To copy to clipboard, switch view to plain text mode
Bookmarks