QApplication::exec() will trigger the even loop and begin executing. But how to quit the program without manually click the "EXIT" button on UI?
QApplication::exec() will trigger the even loop and begin executing. But how to quit the program without manually click the "EXIT" button on UI?
The reason is, return app.exec() will not quit automatically.
app.quit();