Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9140053
  • 博文数量: 1725
  • 博客积分: 12961
  • 博客等级: 上将
  • 技术积分: 19840
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-09 11:25
个人简介

偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.

文章分类

全部博文(1725)

文章存档

2024年(1)

2023年(26)

2022年(112)

2021年(217)

2020年(157)

2019年(192)

2018年(81)

2017年(78)

2016年(70)

2015年(52)

2014年(40)

2013年(51)

2012年(85)

2011年(45)

2010年(231)

2009年(287)

分类: LINUX

2009-09-14 18:13:52

整合qt4.5.2和tslib1.4到 s3c2440 ,arm linux 收藏
1、先一直tslib1.4,要好用。参考上一篇文档
2、解压qt4.5.2,配置:
//添加tslib支持:
./configure -prefix /usr/local/qt4_tslib_install -fast -no-largefile -no-qt3support -no-mmx -no-3dnow -no-xmlpatterns -no-webkit -no-svg -nomake demo -nomake docs -no-openssl -embedded arm -little-endian -no-qvfb -no-mouse-qvfb -depths 16 -confirm-license -xplatform qws/linux-arm-g++ -no-xcursor -no-xfixes -qt-mouse-tslib -I/usr/local/qt4_tslib_install/include -L/usr/local/qt4_tslib_install/lib
 //还要添加环境变量,这样才能用触摸屏
export QWS_MOUSE_PROTO='TSLIB:/dev/input/event0'
export QWS_SIZE='240x320'
//清除
gmake confclean
//
-xplatform 表示移植的平台
-platform 是主机平台
-prefix 安装库的目录,开发板上也要同样的目录才可以运行
3、gmake
4、gmake install
现在应该可以运行程序了。
 
QT中定时器的2种使用方法
(1)重载void timerEvent(QTimerEvent *)函数,然后再在类的构造函数中设置时间间隔
   startTimer(50);//单位为毫秒
(2)在类的构造函数中设定如下:
   QTimer *timer=new QTimer(this);
   connect(timer,SIGNAL(timeout()),this,SLOT(timeoutslot()));//timeoutslot()为自定义槽
   timer->start(1000);

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/lanmanck/archive/2009/06/28/4304861.aspx
阅读(1591) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~