main.cpp

来自「这个程序旨在实现在Qt下的图形界面应用」· C++ 代码 · 共 16 行

CPP
16
字号
#include "hello.h"
#include <qapplication.h>
/*
The program starts here. It parses the command line and builds a message
string to be displayed by the Hello widget.
*/
#define QT_NO_WIZARD
int main( int argc, char **argv )
{
QApplication a(argc,argv);
Hello dlg;
QObject::connect( &dlg, SIGNAL(clicked()), &a, SLOT(quit()) );
a.setMainWidget( &dlg );
dlg.show();
return a.exec();
}

⌨️ 快捷键说明

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