Hello QT

1、下载安装:

sudo apt-get install qt4-dev-tools

2、hello.cpp

目录:./qt_study/hello
code: 

3、编译:

进入上述目录:
qmake -project // 生成hello.pro文件

qmake -hello // 生成Makefile文件

make // 生成hello.o 文件

4、运行:

./hello

原文地址:https://www.cnblogs.com/icode-girl/p/6753488.html