2010 年 第19卷 第 9 期 算 机 系 统 应 用
嵌入式Linux 和Qtopia 下矩阵键盘输入的实现①
李 翠 屈玉贵 ( 中国科学技术大学 电子工程与信息科学系 安徽 合肥 230027)
要: 详细介绍了基于嵌入式Linux 和Qtopia 的矩阵键盘输入实现 法。通过重载Qt 的事件过滤 ,结
合信号和槽机制,利用两级 态处理及有效输入的界定,来简化输入过程,减少按键次数,提高输入
效率。同时利用Qtopia 的图 显示,使输入界面清晰,更适用于嵌入式终端设备。
关键字: 嵌入式终端;矩阵键盘;Qtopia;事件过滤 ;信号与槽机制
Implementation of Matrix Keyboard Input in Embedded Linux and Qtopia
LI Cui, QU Yu-Gui (Department of Electronic Engineering and Information Science, University of Science and
Technology of China, Hefei 230027, China)
Abstract: This paper introduces an input method in detail based on embedded Linux and Qtopia matrix keyboard. By
reimplementing the Qt event filter, combined with signal and slot mechanism to deal with the use of two-tier
status, it is possible to use the definition of the effective input to simplify the input process, reduce the
number of pressing button, and enhance the efficiency of input. At the same time, with the use of Qtopia
graphical display, the input interface is clearer and more applicable to the embedded device.
Key words: embedded device; matrix keyboard; Qtopia; event filter; signal and slot mechanism
随着电子技术的不断发展,嵌入式系统的应用越
来越广泛,对其人机交互界面的要求也越来越高。 Qtopia
Qtopia 是Trolltech 公司为采用嵌入式Linux 操作系 Qt/Embedded
[1] Frame buffer 设备驱动
统的电子设备开发的应用平台 ,Qtopia 包含完整的
应用层、灵活的用户界面、窗口操作系统、应用程序 Linux 操作系统
启动程序以及开发 架,可根据实际需要定制编译, 硬件平台
易于增加新的插件,在嵌入式设备中被广泛应用, 图1 Qtopia 结构1
Qtopia 的实现结构如图1 所示。对于嵌入式系统,键
盘是主要的输入设备。针对键盘输入,在文献[2]中实 1 键盘的硬件电路及驱动
现的键盘驱动为我们实现 Qtopia 下的输入提供了思 1.1 硬件平台
路,但它在文本输入时状态切换频繁,而且可输入符
您可能关注的文档
最近下载
- 第十章血脂及浆脂蛋白检验.doc VIP
- GB 50207-2012 屋面工程质量验收规范.docx VIP
- 高铁乘务人员形体训练全套教学课件.pptx
- 六年级上册道德与法治知识点.docx VIP
- 2026年课件-《成人患者医用粘胶相关性皮肤损伤的预防及护理》团体标准解读2026-新版.pdf
- 2017-2018年度零售业消费者满意度调查报告.pdf VIP
- 〖初中数学〗整式的乘法 课件 2024--2025学年北师大版七年级数学下册.pptx VIP
- 深度解析(2026)《SYT 5679-2017钻井液用降滤失剂 褐煤树脂 SPNH》.pptx VIP
- 12J201 平屋面建筑构造图集.docx VIP
- 社会调查研究计划书.docx VIP
原创力文档

文档评论(0)