I recently upgraded to Qt 4.4.1, and after compiling my program and running it, I noticed that when the first modal dialog, a login popup appears, it does not allow me to click on any of the buttons in it anymore. In addition, I can not drag the login popup around like I normally should be able to. I broke down the code to a simple example, and the same exact thing happens: the dialog will appear, but I can not click on any of the buttons or fields in it. Here is the code for the simple example that has this problem:

Main.cpp:
Qt Code:
  1. #include <QApplication>
  2.  
  3. #include "calculatorform.h"
  4.  
  5.  
  6. int main(int argc, char *argv[]) {
  7. QApplication app(argc, argv);
  8.  
  9. //show the main window:
  10. FabwareMain calculator;
  11. calculator.show();
  12. return app.exec();
  13. }
To copy to clipboard, switch view to plain text mode 
Calculatorform.h:
Qt Code:
  1. #ifndef CALCULATORFORM_H
  2. #define CALCULATORFORM_H
  3. //user interface for this window:
  4. #include "ui_calculatorform.h"
  5.  
  6. //dialogs that are spawned from this window:
  7. #include "dialog_login.h"
  8.  
  9. #include "var_login.h"
  10.  
  11. //QT modules used by this window:
  12. #include <QString>
  13.  
  14. class FabwareMain : public QMainWindow {
  15. Q_OBJECT
  16.  
  17. public:
  18. FabwareMain();
  19.  
  20. private slots:
  21.  
  22. void popupLogin();
  23.  
  24. private:
  25. //interface:
  26. Ui::FabwareMain ui;
  27.  
  28. //variables:
  29. var_login login; //stores last login information
  30. };
  31.  
  32. #endif
To copy to clipboard, switch view to plain text mode 

Calculatorform.cpp:
Qt Code:
  1. #include <QtGui>
  2.  
  3. #include "calculatorform.h"
  4. #include <QMessageBox>
  5. #include <QDebug>
  6. /*
  7. Constructor for main window:
  8. */
  9. FabwareMain::FabwareMain() {
  10. ui.setupUi(this);
  11.  
  12. connect( ui.actionLogin, SIGNAL( triggered() ), this, SLOT( popupLogin() ) );
  13.  
  14. }
  15.  
  16. //popup for login dialog:
  17. void FabwareMain::popupLogin() {
  18.  
  19. //create a dialog box:
  20. DialogLogin dlg(this);
  21.  
  22. //do something once we click OK:
  23. if( dlg.exec() == QDialog::Accepted ) {
  24. login = dlg.login;
  25.  
  26.  
  27. }
  28. }
To copy to clipboard, switch view to plain text mode 

Dialog_login.h
Qt Code:
  1. #ifndef DIALOG_LOGIN_H
  2. #define DIALOG_LOGIN_H
  3.  
  4. //user interface items:
  5. #include "ui_dialog_login.h"
  6.  
  7. //data structure items:
  8. #include "var_login.h"
  9.  
  10. class DialogLogin : public QDialog, private Ui::DialogLogin {
  11.  
  12. Q_OBJECT
  13.  
  14. public:
  15. //functions:
  16. DialogLogin(QWidget *parent = 0);
  17.  
  18.  
  19. //variables:
  20. var_login login;
  21.  
  22. private slots:
  23. void returnVars();
  24.  
  25. private:
  26.  
  27. };
  28.  
  29. #endif
To copy to clipboard, switch view to plain text mode 

dialog_login.cpp:
Qt Code:
  1. #include <QtGui>
  2.  
  3. #include "dialog_login.h"
  4.  
  5. //setup interface of main window:
  6. DialogLogin::DialogLogin(QWidget *parent) : QDialog(parent) {
  7.  
  8. setupUi(this);
  9.  
  10. //connect form item signals to slots that arent in the UI file here:
  11. connect(buttonBox, SIGNAL(accepted()), this, SLOT(returnVars()));
  12. connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
  13.  
  14. }
  15.  
  16. void DialogLogin::returnVars() {
  17.  
  18. login.username = userid->text();
  19. login.password = password->text();
  20. accept();
  21. }
To copy to clipboard, switch view to plain text mode 

var_login.h:
Qt Code:
  1. #ifndef VAR_LOGIN_H
  2. #define VAR_LOGIN_H
  3.  
  4. #include <QString>
  5.  
  6. class var_login {
  7.  
  8. public:
  9. QString username,
  10. password;
  11.  
  12. };
  13.  
  14. #endif
To copy to clipboard, switch view to plain text mode