main.cpp

来自「Computer tool code for Linux embeded, it」· C++ 代码 · 共 17 行

CPP
17
字号
#include "cwidget.h"
#include <qapplication.h>


int main(int argc, char **argv)
{
	int result = 0;
	QApplication app(argc, argv);
  CWidget *main = new CWidget();
	main->setCaption("Calculater");
  app.connect(&app,SIGNAL(lastWindowClosed()),SLOT(quit()));
	main->show();
	result = app.exec();
	return result;
}

⌨️ 快捷键说明

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