QT编程教程——Qt参考手册.PDF

QT编程教程——Qt参考手册

Qt 教程一 —— 第一章:Hello, World! 第一个程序是一个简单的 Hello World 例子。它只包含你建立和运行 Qt 应用程序所需 要的最少的代码。上面的图片是这个程序的快照。 /**************************************************************** ** ** Qt教程一 - 2 ** ****************************************************************/ #include qapplication.h #include qpushbutton.h int main( int argc, char **argv ) { QApplication a( argc, argv ); QPushButton hello( Hello world!, 0 ); hello.resize ( 100, 30 ); a.setMainWidget( hello ); hello.show(); return a.exec(); } 一行一行地解说

文档评论(0)

1亿VIP精品文档

相关文档