No, only 4.3.4.

I've no idea to locate the problem. I think there is a big mistake in my code. Now, I'll debug the code to locate the problem. For Example:

main.cpp
Qt Code:
  1. #include <QApplication>
  2. #include "MainWindow/MainWindow.h"
  3. #include "LoginDialog/LoginDialog.h"
  4. #include "Settings/Settings.h"
  5. #include "StartupWizard/StartupWizard.h"
  6. #include <QtSql>
  7.  
  8. int main(int argc, char *argv[]) {
  9. QApplication app(argc, argv);
  10. QCoreApplication::setOrganizationName("NORO-Automaten");
  11. QCoreApplication::setOrganizationDomain("http://www.noro.de");
  12. QCoreApplication::setApplicationName("QFinancialOffice");
  13.  
  14. QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
  15. db.setHostName("192.168.2.229");
  16. db.setUserName("qfinancialoffice");
  17. db.setPassword("test");
  18. db.setDatabaseName("qfinancialoffice");
  19. if (!db.open())
  20. QMessageBox::critical(0, QString("Error"), QString("The error:\n%1").arg(db.lastError().text()));
  21. else
  22. QMessageBox::critical(0, QString("OK"), QString("OK"));
  23.  
  24. CSettings *configure = new CSettings;
  25.  
  26. if (configure->settings.firstrun) {
  27. QMessageBox::information(0, QObject::tr("Erster Start"), QObject::tr("Dies ist der erste Start von <b>QFinancialOffice</b>.\nAls erstes muessen Sie <b>QFinancialOffice</b> konfigurieren."));
  28. ClassWizard *wizard = new ClassWizard;
  29. if (wizard->exec() == ClassWizard::Accepted) {
  30. QMessageBox::information(0, QObject::tr("Neustart"), QObject::tr("QFinancialOffice wird jetzt neu gestartet."));
  31. QProcess process;
  32. process.startDetached(QApplication::applicationFilePath());
  33. process.waitForStarted();
  34. }
  35.  
  36. delete configure;
  37. return 1;
  38. } else {
  39. CLoginDialog *login = new CLoginDialog;
  40. if (login->exec() == CLoginDialog::Accepted) {
  41. CMainWindow *window = new CMainWindow;
  42. window->show();
  43. } else {
  44. QMessageBox::critical(0, QString("Fehler"), QString("Der Login war nicht erfolgreich\n Programm kann nicht gestartet werden.\n"));
  45. return 1;
  46. }
  47. }
  48.  
  49. app.exec();
  50. }
To copy to clipboard, switch view to plain text mode 

You can see, at first I'll test my local database connection, this test fails on windows but not on linux. In my test program there is the same test code and it works.

I don't know, but can it be, that I have an memory problem?

Qt Code:
  1. QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
To copy to clipboard, switch view to plain text mode 

This object will be saved on the stack. If my stack is full I had an undefined problem or not?

The problem is unbelievabl.