为application 设置setQuitOnLastWindowClosed属性,确实为true;
将其显示为false;
退出该应该程序不能调用QDialog的close消息槽,只能调用qApp->exit();
a.setQuitOnLastWindowClosed(false);
https://blog.csdn.net/lanhy999/article/details/8772408