main.cpp
来自「这是基于QT2.3.10的信号和槽的一个实例」· C++ 代码 · 共 22 行
CPP
22 行
#include <qapplication.h>#include "mainwindow.h"int main( int argc, char **argv ){ QApplication app( argc, argv ); MainWindow *mainwindow = new MainWindow( 0 ); mainwindow->setGeometry( 50, 20, 200, 200 ); app.setMainWidget( mainwindow ); mainwindow->show(); int result = app.exec(); return result;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?