main.cpp

来自「linux 下通过802.1认证的安装包」· C++ 代码 · 共 19 行

CPP
19
字号
// Header for the QApplication class
 #include <qapplication.h>

 // Header for our dialog
 #include "mainwnd.h"

 // Remember the ( int, char** ) part as the QApplication needs them
 int main( int argc, char **argv )
 {
   // We must always have an application
   QApplication a( argc, argv );

   mainWnd *m = new mainWnd();   // We create our dialog
   a.setMainWidget( m );         // It is our main widget
   m->show();                    // Show it...

   return a.exec();              // And run!
 }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?