- Game Programming using Qt 5 Beginner's Guide
- Pavel Strakhov Witold Wysota Lorenz Haas
- 49字
- 2021-08-27 18:30:59
What just happened?
The qApp macro is a shortcut for a function that returns a pointer to the application singleton object, so when the action is triggered, Qt will call the quit() slot on the QApplication object created in main(), which, in turn, will cause the application to end.