eric
14th December 2007, 20:32
Hello!
I'd like to make a simple popup dialog that opens after my program is done running. I want it to say "Completed" and display an OK button which would simply close the dialog.
So far I have this:
QDialog okDialog(this, Qt::Dialog);
QLabel doneLabel("Complete");
QPushButton okButton;
okDialog.resize(50,50);
okDialog.exec();
okDialog.raise();
okDialog.activateWindow();
I'd like to know how to add the okButton and the QLabel (wth thext) to the surface of my dialog. Thanks.
I'd like to make a simple popup dialog that opens after my program is done running. I want it to say "Completed" and display an OK button which would simply close the dialog.
So far I have this:
QDialog okDialog(this, Qt::Dialog);
QLabel doneLabel("Complete");
QPushButton okButton;
okDialog.resize(50,50);
okDialog.exec();
okDialog.raise();
okDialog.activateWindow();
I'd like to know how to add the okButton and the QLabel (wth thext) to the surface of my dialog. Thanks.