Wenn ich nun aber innerhalb von closeEvent close() aufrufe lande ich nur in einer sinnlosen rekursion. Wenn ich close nicht aufrufen wird die Applikation aber auch nicht beendet.
Wenn ich closeAllWindows aufrufe, dann friert die Oberfläche ein, aber das Programm wird nicht beendet.
Code: Alles auswählen
void MainWindow::closeEvent ( QCloseEvent * event )
{
if (TranslationStage.DllLoaded())
TranslationStage.unloadDLL();
qApp->closeAllWindows();
qApp->quit();
}
EDIT:
Nehme ich das ' qApp->closeAllWindows();' raus, dann wird das Programm auch beendet.
EDIT2:
Dafür bekomme ich jetzt den Fehler
am Ende von "main".Run-Time Check Failure #2 - Stack around the variable 'mainWindow' was corrupted.
Matthias