I've got a simple app (no functionality yet, just laying it out) that opens with a dialog box with 2 buttons. If you hit one button another Dialog box opens and when you hit OK/Cancel from that Dialog control goes back to the original dialog. If you hit the other button the otherDialog box opens but when you hit OK/Cancel from that dialog, once it closes out and the original dialog box comes back into view, I can't click on the original dialog anymore. It's like it's grayed out. I just hear a ding in the background each time I try to click anywhere on it. I can't see anything that I'm doing differently between the 2. Are there any parenting issues involved here?

in my header for the main dialog box
Qt Code:
  1. class cMainWindowDlg : public QDialog, public Ui::cMainWindowDlg
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. cMainWindowDlg(QWidget * parent = 0);
  7. virtual ~cMainWindowDlg();
  8. void setupUi();
  9.  
  10. private slots:
  11. // Automatically connected slots. Note these slots follow the naming convention
  12. // on_objectName_signalName()
  13.  
  14. void on_mOkButton_clicked();
  15. void on_mCancelButton_clicked();
  16. void on_mLaborCategoryButton_clicked();
  17. void on_mContractButton_clicked();
  18.  
  19. private:
  20. cLaborCategoryDlg * mLaborCategoryDlg;
  21. cContractDataQueryDlg * mContractDataDlg;
  22. }; // cMainWindowDlg
To copy to clipboard, switch view to plain text mode 
the constructor for main dialog box
Qt Code:
  1. ////////////////////////////////////////////////////////////////////////////////
  2. cMainWindowDlg::cMainWindowDlg(QWidget * parent) :
  3. QDialog(parent),
  4. mLaborCategoryDlg(0),
  5. mContractDataDlg(0)
  6. {
  7. // Note that setupUi() will also automatically connect any slots that follow
  8. // the naming conventions.
  9. setupUi();
  10.  
  11. mLaborCategoryDlg = new cLaborCategoryDlg(this); //Managed by Qt
  12.  
  13. mContractDataDlg = new cContractDataQueryDlg(this); //Managed by Qt
  14.  
  15. } // cMainWindowDlg::cMainWindowDlg
  16. void cMainWindowDlg::setupUi()
  17. {
  18. Ui_cMainWindowDlg::setupUi(this); // Must call the base class setupUi first
  19.  
  20. } // cMainWindowDlg::setupUi
To copy to clipboard, switch view to plain text mode 

the 2 buttons that open up the other dialog boxes
Qt Code:
  1. void cMainWindowDlg::on_mLaborCategoryButton_clicked()
  2. {
  3. bool accepted(mLaborCategoryDlg->exec())); //true=>OK false=>Cancel
  4. }
  5. void cMainWindowDlg::on_mContractButton_clicked()
  6. {
  7. bool accepted(mContractDataDlg->exec())); //true=>OK false=>Cancel
  8. }
To copy to clipboard, switch view to plain text mode