Peter Kümmel wrote:
Abdelrazak Younes wrote:
Exactly my point. With current svn, it is not necessary and everything
is destroyed in the correct order on Windows and I believe also Linux
without requiring a hard ::exit(0).
Does this mean needing ::exit(0) is a Qt bug?
I am not sure. The interaction between the loop event, the last window
close, etc is really complicated. With current svn we try to do as
recommended by Qt:
int main() {
QApplication App;
return App.exec();
}
By interrupting the event loop in GuiImplementation, you take the risk
that some Qt objects were not shut down properly, hence the infinite
loop event. That is the reason why I made sure that all windows are
closed in LFUN_EXIT before continuing with the exit process. That seemed
to work fine on Windows and Linux but apprently not in Mac.
Abdel.