zz qt4在vs2008下的使用记录(草稿)
来源:互联网 发布:linux如何查看进程id 编辑:程序博客网 时间:2024/04/28 20:21
qt4 开源版本qt-win-opensource-src-4.3.3
qt官方网站 http://trolltech.com/
解压qt4。
使用Visual Studio 2008 Command Prompt到命令行模式。
到qt目录下
cd bin
configure (很久)
namke (很久)
建立项目
编辑一个xx.cpp文件
在文件目录下执行
qmake -project
qmake -t vcapp
下面用一个小程序测试一下
创建文件名为hello.cpp,输入如下代码:
#include <QApplication>
#include <QLabel>
int main(int argc, char **argv) {
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello World!");
label->show();
return app.exec();
}
然后
prompt> qmake -project -o hello.pro
prompt> qmake
prompt> nmake
就会在debug文件夹下生成一个.exe文件。
qmake
用vs2008打开项目
编辑ui
执行bin目录下的designer.exe
存盘,
uic -o xxx.h xxx.ui
复制到项目下面
执行qmake
用vs2008打开
字符串使用gbk编码(全局)
main函数加入
QTextCodec::setCodecForTr(QTextCodec::codecForName("GBK"));.
- zz qt4在vs2008下的使用记录(草稿)
- VS2008+Qt4.8.1下使用QtNetwork库
- VS2008+Qt4.8.1下使用QtNetwork库
- qt4在ubuntu下的使用
- AStyle2.02在VS2008下的使用
- CxImage在VS2008下的使用
- CGridCtrl在VS2008下的使用问题
- AStyle2.02在VS2008下的使用
- AStyle2.02在VS2008下的使用
- NUnit在VS2008下的使用
- AStyle2.02在VS2008下的使用
- VC++6.0下的工程在VS2008中打开注意事项 (zz)
- qt4.6.0 下 vs2008编译
- linux下QT4的使用
- 在 VS2008 下使用 WebService
- Qt4在linux下的安装
- 在vs2008下使用wxWidgets的诡异问题
- 在vs2008下使用ffmpeg(2):readtime的问题
- 封面
- Socket HTTP页面请求后对gzip页面的解压缩实现代码
- [转]C# 播放器空件 的常用方法
- 《没有任何借口》读后感
- Building a Distributed Object System with .NET and J2EE Using IIOP.NET
- zz qt4在vs2008下的使用记录(草稿)
- Introduction to RPC - Part 1
- 半年了
- Introduction to RPC - Part 2
- c#数据绑定概念
- Introduction to the Winpcap Networking Libraries
- aa
- aaa
- linux下的Oracle 9i的安装