Since no GUI elements have been implemented yet including any window, somehow the quit() function needs to be called. This is accomplished with a single shot timer initiated with the call:
QTimer::singleShot(0, &app, SLOT(quit()));This timer times out immediately and calls the quit() slot of the QApplication instance, but fortunately this does not occur until the exec() function is called. Once exec() is called, it immediately returns, exiting the application.
No comments:
Post a Comment
All comments and feedback welcomed, whether positive or negative.
(Anonymous comments are allowed, but comments with URL links or unrelated comments will be removed.)