From 12adcb02ab472548c03c905936707d5024ae1671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C?= Date: Fri, 15 Jun 2018 14:41:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9qt=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 代码/telsale_aux_kit/source/main.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/代码/telsale_aux_kit/source/main.cpp b/代码/telsale_aux_kit/source/main.cpp index d8839a5..af43ace 100644 --- a/代码/telsale_aux_kit/source/main.cpp +++ b/代码/telsale_aux_kit/source/main.cpp @@ -11,7 +11,7 @@ using namespace std; int main( int argc, char * argv[] ) { - QApplication * pApp = NULL; + QApplication * pApp = new QApplication(argc, argv);; QLoginWidget * pLogin = NULL; QMainFrame * pMainFrame = NULL; @@ -35,9 +35,9 @@ int main( int argc, char * argv[] ) try { + //pApp = pLogin = new QLoginWidget(); - pApp = new QApplication( argc, argv ); - + pLogin->exec(); if ( pLogin->isLogin() == true ) @@ -61,15 +61,15 @@ int main( int argc, char * argv[] ) delete pLogin; } - if ( pApp != NULL ) - { - delete pApp; - } - if ( pMainFrame != NULL ) { delete pMainFrame; } + if (pApp != NULL) + { + delete pApp; + } + return iReturnCode; }