I guess you shouldn't call QApplication::exit() from the close event. If you accept the event and make sure the app gets closed when this particular window closes, you'll achieve the same effect.
I guess you shouldn't call QApplication::exit() from the close event. If you accept the event and make sure the app gets closed when this particular window closes, you'll achieve the same effect.
After much beating of heads against walls, I found that I was reaching my return statement at the end of my main function and the exceptions being thrown occurr in one of the Windows DLL's. With the help of a friend of mine here at work, we compared Makefiles between a multi-threaded application that wasn't QT and the qmake-generated Makefile. It turns out that the qmake-generated Makefile had the compiler option set for it to have been built as a DLL instead of an executable, so we changed the CFLAGS and CXXFLAGS from -MDd to -MTd along with adding /nodefaultlib:"msvcrt.lib" to the LFLAGS. This seemed to fix the problem. Is this a known problem? I do have TEMPLATE: app in my .pro.
Thanks for your help.
The end of time is reached around the year 8000, by which time we expect Qt to be obsolete.
-Note in QDate documentation. It's nice that Qt has been able to predict when the world will end.
Bookmarks