免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2473 | 回复: 2
打印 上一主题 下一主题

[图形界面] qtopia [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-08-21 12:00 |只看该作者 |倒序浏览
有朋友qt/qembed和qtopia移植的中文资料么,最近刚刚学嵌入式开发 想弄个图形界面出来,但是对这两个都是似懂非懂的,想找点好点的资料好好了解一下,谢谢了。
                    我邮箱sydnash1@gmail.com

论坛徽章:
0
2 [报告]
发表于 2010-09-13 17:41 |只看该作者
学qt-embedded,如果没有开发板,最好安装一个qvfb,编译成x86版的qt-embedded。诺基亚都已经停止qtopia的支持了,以后会集成到QT环境下的。先好好学好Qt编程吧,无论是desktop还是embedded

论坛徽章:
0
3 [报告]
发表于 2010-09-14 10:53 |只看该作者
我这到有些资料:关于Qt在PC机上运行的
第32章        QT编程(V3.1在PC上运行)
参考《嵌入式Linux用Qt Designer快速开发》
1、        打开QT Design
2、        File→New→C++ Project→OK,输入工程名→OK
3、        File→New→Dialog→OK
4、        添加相关代码
5、        File→New→C++Main-File(main.cpp)
6、        在命令行中运行qmake -o Makefile qthello.pro
7、        make
第33章        QT编程(V2.3.X 在PC上运行)
1、        保证:
export TMAKEPATH=/arm/qt-2.3.x/tmake-1.11/lib/linux-g++
export QTDIR=/arm/qt-2.3.x/qt-2.3.2
export QTEDIR=/arm/qt-2.3.x/qt-2.3.2
export PATH=$QTDIR/binPATH
export LD_LIBRARY_PATH=$QTDIR/libLD_LIBRARY_PATH
2、        程序编写
编写main.cpp
progen -o helloqte.pro
tmake -o Makefile helloqte.pro
make
./helloqte

第34章        QT编程(V2.3.X 在qvfb上运行)
1、        保证:
export TMAKEPATH=/arm/qt-2.3.x/tmake-1.11/lib/qws/linux-x86-g++
export QTDIR=/arm/qt-2.3.x/qt-2.3.10
export QTEDIR=/arm/qt-2.3.x/qt-2.3.10
export PATH=$QTDIR/binPATH
export LD_LIBRARY_PATH=$QTDIR/libLD_LIBRARY_PATH
2、        程序编写
编写main.cpp
progen -o helloqte.pro
tmake -o Makefile helloqte.pro
make
qvfb -height 480 -width 640 -depth 8 &
./helloqte -qws
第35章        QT编程(V2.3.X 在arm上运行)
1、        保证:
export TMAKEPATH=/arm/qt-2.3.x/tmake-1.11/lib/qws/linux-arm-g++
export QTDIR=/arm/qt-2.3.x/qt-2.3.7
export QTEDIR=/arm/qt-2.3.x/qt-2.3.7
export PATH=$QTDIR/binPATH
export LD_LIBRARY_PATH=$QTDIR/libLD_LIBRARY_PATH
2、        程序编写
编写main.cpp
progen -o helloqte.pro
tmake -o Makefile helloqte.pro
make
将程序放到ARM上去
./helloqte -qws

要在无数字的系统下编译,再拷贝
cd /mnt/hgfs/share/drawdemo/
第36章        QT编程用designer(在pc上运行)
1、        保证:
export TMAKEPATH=/arm/qt-2.3.x/tmake-1.11/lib/linux-g++
export QTDIR=/arm/qt-2.3.x/qt-2.3.2
export QTEDIR=/arm/qt-2.3.x/qt-2.3.2
export PATH=$QTDIR/binPATH
export LD_LIBRARY_PATH=$QTDIR/libLD_LIBRARY_PATH
2、        编程
执行designer
编辑界面
保存成hellodlg.ui
uic -o hellodlg.h hellodlg.ui
uic -o hellodlg.cpp -impl hellodlg.h hellodlg.ui
编写main.cpp
progen -o hellodlg.pro main.cpp  hellodlg.cpp hellodlg.h hellodlg.ui
tmake -o Makefile hellodlg.pro
将Makefile中重复的东西全部注释掉
删掉$(UICIMPLS) $(UICDECLS) 这两个
注释掉生成hellodlg.cpp  hellodlg.h 的语句
make
./hellodlg
第37章        QT编程用designer(在qvfb上运行)
1、        保证:
export TMAKEPATH=/arm/qt-2.3.x/tmake-1.11/lib/qws/linux-x86-g++
export QTDIR=/arm/qt-2.3.x/qt-2.3.10
export QTEDIR=/arm/qt-2.3.x/qt-2.3.10
export PATH=$QTDIR/binPATH
export LD_LIBRARY_PATH=$QTDIR/libLD_LIBRARY_PATH
2、        编程
执行designer
编辑界面
保存成hellodlg.ui
uic -o hellodlg.h hellodlg.ui
uic -o hellodlg.cpp -impl hellodlg.h hellodlg.ui
编写main.cpp
progen -o hellodlg.pro main.cpp  hellodlg.cpp hellodlg.h hellodlg.ui
tmake -o Makefile hellodlg.pro
将Makefile中重复的东西全部注释掉
删掉$(UICIMPLS) $(UICDECLS) 这两个
注释掉生成hellodlg.cpp  hellodlg.h 的语句
make
qvfb -height 480 -width 640 -depth 8 &
./hellodlg -qws
第38章        QT编程用designer(在arm上运行)
3、        保证:
export TMAKEPATH=/arm/qt-2.3.x/tmake-1.11/lib/qws/linux-arm-g++
export QTDIR=/arm/qt-2.3.x/qt-2.3.7
export QTEDIR=/arm/qt-2.3.x/qt-2.3.7
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
4、        编程
执行designer
编辑界面
保存成hellodlg.ui
uic -o hellodlg.h hellodlg.ui
uic -o hellodlg.cpp -impl hellodlg.h hellodlg.ui
编写main.cpp
progen -o hellodlg.pro main.cpp  hellodlg.cpp hellodlg.h hellodlg.ui
tmake -o Makefile hellodlg.pro
将Makefile中重复的东西全部注释掉
删掉$(UICIMPLS) $(UICDECLS) 这两个
注释掉生成hellodlg.cpp  hellodlg.h 的语句
make
./hellodlg -qws
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP