button.cpp

来自「qt实例 在qt2.3.7调试ok!没有在arm板测试!第1例」· C++ 代码 · 共 19 行

CPP
19
字号
#include <qapplication.h>#include <qpushbutton.h>int main(int argc, char **argv){	QApplication button(argc, argv);	QPushButton hello("Hello, Button!", 0);	hello.resize(150, 30);	hello.setFont(QFont("Helvetica", 18, QFont::Bold));	button.setMainWidget(&hello);	hello.show();	int result = button.exec();	return result;}

⌨️ 快捷键说明

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