程序主体由 QApplication app(argc,argv)开始按顺序初始化程序;在 return app.exec();处进入消息循环app.exec()函数监听事件,有event()函数分发事件