Chinaunix首页 | 论坛 | 博客
  • 博客访问: 936433
  • 博文数量: 192
  • 博客积分: 3070
  • 博客等级: 中校
  • 技术积分: 1861
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-27 23:44
个人简介

Start Linux Leave Linux a while Back to Linux

文章分类

全部博文(192)

文章存档

2023年(18)

2022年(11)

2021年(8)

2020年(14)

2019年(7)

2018年(13)

2017年(16)

2016年(4)

2012年(2)

2011年(13)

2010年(26)

2009年(13)

2008年(27)

2007年(20)

我的朋友

分类: LINUX

2009-02-05 23:51:36

QT2.3.2 designer 的使用:
1)首先配置,安装qt源码包。   
[root @localhost qt2]. build_x86_qt-2.3.2_env
build_x86_qt-2.3.2_env 内容如下:
#!/bin/bash
#tar -xzvf tmake-1.13.tar.gz
#tar -xzvf qt-x11-2.3.2.tar.gz
#tar -xzvf qt-embedded-2.3.10-free.tar.gz
export TMAKEDIR=$PWD/tmake-1.13
export QTEDIR=$PWD/qte-arm
export QTDIR=$PWD/qt-2.3.2
export PATH=$QTDIR/bin:$TMAKEDIR/bin:$PATH
export TMAKEPATH=$TMAKEDIR/lib/linux-g++
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
#cp -r /usr/include/freetype2/freetype $QTDIR/include
#cd qt-2.3.2
#./configure -no-opengl
#make
#make -C tools/qvfb
#mv tools/qvfb/qvfb bin
#mkdir -p $QTEDIR/bin
#cp bin/* $QTEDIR/bin
#cd ..
 
注意,前提是 tmake 必须安装。
 
2) 运行 designer
设计窗口,将工程保存为 hello.ui
 
3) uic -o hello.h hello.ui
   uic -o hello.cpp -impl hello.h hello.ui
   progen -o hello.pro
warning:
   hello.pro的 INTERFACES  =  hello.ui 改为 INTERFACES   =
  
   tmake -o Makefile hello.pro
   make
 
4) ./hello
 
 
阅读(1635) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~