主题 : 关于qt移植的几个问题? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 926
精华: 0
发帖: 16
金钱: 160 两
威望: 16 点
综合积分: 32 分
注册时间: 2008-06-22
最后登录: 2008-08-23
楼主  发表于: 2008-08-18 11:43

 关于qt移植的几个问题?

我移植了一个QTOPIA到2440上面,可以正常运行,触摸也正常。
但是同样的内容放到另外一块pxa255板子上却对触摸没有响应。这是系统的问题还是QT的问题,有什么解决方法?

还有我用qt designer编写的程序无法编译成功。
我是通过使用
progen -o hello.pro
tmake hello.pro -o Makefile
make
进行交叉编译的。可是编译不通过
出现
/work/qopia/bin/uic .ui .h
致命错误
这是什么原因?有什么解决方法?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-08-18 13:32
引用楼主talent1224于2008-08-18 11:43发表的 关于qt移植的几个问题? :
我移植了一个QTOPIA到2440上面,可以正常运行,触摸也正常。
但是同样的内容放到另外一块pxa255板子上却对触摸没有响应。这是系统的问题还是QT的问题,有什么解决方法?

1. 先确认pxa255板的触摸屏驱动是OK的
2. qtopia对于input模块的配置有很多种,基于不同的input device,你得根据pxa255板上内核input模块的配置来调整qtopia,让qtopia可以正确读到触摸屏驱动返回的数据
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2008-08-18 13:34
能否把你移植qtopia的经验分享出来?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 926
精华: 0
发帖: 16
金钱: 160 两
威望: 16 点
综合积分: 32 分
注册时间: 2008-06-22
最后登录: 2008-08-23
3楼  发表于: 2008-08-18 17:30
原来是我弄错了。QQ2440和PXA两个板子都不能对触摸屏相应。
但是两个板子的触摸屏和功能都是好的。
移植之后,触摸就是对我移植进去的qt无响应,但是原来的系统对我的触摸有相应的响应。
相当于我移植进去的只是一个图,但是点击这个图的时候是原来的系统做出相应,并不是这个图做出相应。可能是qt没有收到触摸数据吧。这个问题一直弄了很久没有弄好。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2008-08-18 20:23
把你移植的步骤写出来吧,也许能发现疏漏的地方
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 926
精华: 0
发帖: 16
金钱: 160 两
威望: 16 点
综合积分: 32 分
注册时间: 2008-06-22
最后登录: 2008-08-23
5楼  发表于: 2008-08-19 14:20
移植已经可以了。也可以收到点击的信息。但是坐标不正确,不知道有什么矫正方法?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
6楼  发表于: 2008-08-19 15:15
引用第5楼talent1224于2008-08-19 14:20发表的  :
移植已经可以了。也可以收到点击的信息。但是坐标不正确,不知道有什么矫正方法?

qtopia应该有自己的触摸屏校准程序;
另外,QQ2440手册上的qtopia部分写的很不详细,我希望你能把你的经验分享出来,事实上论坛上有很多人也想做类似的事,让他们可以少走一些弯路,谢谢
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 926
精华: 0
发帖: 16
金钱: 160 两
威望: 16 点
综合积分: 32 分
注册时间: 2008-06-22
最后登录: 2008-08-23
7楼  发表于: 2008-08-19 16:21
能否告诉我具体qtopia校正程序在哪里吗?

我写了一个总结。文章很长。
我放在我的blog里面了
http://johnylai.blog.sohu.com/
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 2008-08-20 11:07
引用第7楼talent1224于2008-08-19 16:21发表的  :
能否告诉我具体qtopia校正程序在哪里吗?

我写了一个总结。文章很长。
我放在我的blog里面了
http://johnylai.blog.sohu.com/

谢谢。为什么移植老掉牙的qt 1.x版本,qtopia现在已经到4.x了啊,呵呵
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
9楼  发表于: 2008-08-20 11:10
引用第7楼talent1224于2008-08-19 16:21发表的  :
能否告诉我具体qtopia校正程序在哪里吗?

这个程序应该是qtopia启动时自动运行的,如果它发现屏幕没有校准过的话。就像QQ2440默认的qtopia文件系统那样。
你可以查一下qtopia的启动流程。不过我不确定你用的这个版本里是不是这样的。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."