Qt int QApplication::exec() [static]
当进入main 主事件,控制台等待直到调用exit()或者quit();才退出。
当你没有exec()着个返回的时候,运行之后控制台是不会停留运行之后直接退出