Qt helloworld
2013-07-23 14:12
447 查看
MingZznet---------------------------------------------NOW--------------------------------------
1.新建helloworld文件夹
mkdir helloworld
2.在helloworld文件夹下建立helloworld.cpp文件
cd helloworld
touch helloworld.cpp
3.编辑helloworld.cpp
vi helloworld.cpp
输入以下内容:
#include <stdio.h>
int main()
{
printf("helloworld!\n");
return 0;
}
保存退出
4.生成项目文件helloworld.pro
qmake --project
5.生成Makefile文件
qmake
6.编译项目,生成helloworld文件
make
7.运行helloworld
./helloworld
8.结果输出:
helloworld!
----------------------------------------------------------THE END-----------------------MingZznet-------------------------------------------
1.新建helloworld文件夹
mkdir helloworld
2.在helloworld文件夹下建立helloworld.cpp文件
cd helloworld
touch helloworld.cpp
3.编辑helloworld.cpp
vi helloworld.cpp
输入以下内容:
#include <stdio.h>
int main()
{
printf("helloworld!\n");
return 0;
}
保存退出
4.生成项目文件helloworld.pro
qmake --project
5.生成Makefile文件
qmake
6.编译项目,生成helloworld文件
make
7.运行helloworld
./helloworld
8.结果输出:
helloworld!
----------------------------------------------------------THE END-----------------------MingZznet-------------------------------------------
相关文章推荐
- QT Hello World
- QT for Android HelloWorld.apk!耶
- Qt-简单程序实例Hello,world
- qt helloworld遇到的问题
- QT helloworld
- Windows下qt的环境配置及运行一个c++"hello world"实例详细步骤
- 入门Qt——hello, world
- 在Ubuntu上编写Qt Helloworld程序
- Qt Creator Qt创造者------HelloWorld Qt
- Windows下qt的环境配置及运行一个c++"hello world"实例详细步骤
- QT第一个程序 hello,world
- 入门Qt——hello, world
- Qt 学习之路 2(3):Hello, world!
- 在VS2008中使用Qt编程--Qt HelloWorld(转)--天空16度蓝
- Qt&nbsp;HelloWorld&nbsp;用label显示
- Windows下qt的环境配置及运行一个c++"hello world"实例详细步骤
- Qt 学习之路 2(3):Hello, world!
- Qt&nbsp;HelloWorld&nbsp;使用button显示
- Windows下qt的环境配置及运行一个c++"hello world"实例详细步骤
- Qt Quick Hello World hacking