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:

Qt Code:
  1. QDialog okDialog(this, Qt::Dialog);
  2. QLabel doneLabel("Complete");
  3. QPushButton okButton;
  4. okDialog.resize(50,50);
  5.  
  6. okDialog.exec();
  7. okDialog.raise();
  8. okDialog.activateWindow();
To copy to clipboard, switch view to plain text mode 

I'd like to know how to add the okButton and the QLabel (wth thext) to the surface of my dialog. Thanks.