QT移植中的触摸屏,键盘,显示相关处理

1. 触屏(Pointer Handling)

 

 In the default Qt configuration, only the "pc" mouse driver is enabled. The various drivers can be enabled and disabled using the configure script. For example: configure -qt-mouse-tslib

 

Provided that the "pc" mouse driver is enabled, Qt for Embedded Linux will try to auto-detect the mouse device if it is one of the supported types on /dev/psaux or one of the /dev/ttyS? serial lines. If multiple mice are detected, all may be used simultaneously. Note that Qt for Embedded Linux does not support auto-detection of touch panels in which case the driver must be specified explicitly to determine which device to use.

 

 To manually specify which driver to use, set the QWS_MOUSE_PROTO environment variable.

In addition, the tslib headers and library must be present in the build environment.

 

 2. 键盘(Character Input)

 

In the default Qt configuration, only the "TTY" driver is enabled. The various drivers can be enabled and disabled using the configure script. For example: configure -qt-kbd-linuxinput

By default Qt will use an internal, compiled-in US keymap To specify which driver to use, set the QWS_KEYBOARD environment variable

 

3. 显示(Display Management)

 

 In the default Qt configuration, only an unaccelerated Linux framebuffer driver (/dev/fb0) is enabled.

The various drivers can be enabled and disabled using the configure script. For example:./configure -qt-gfx-transformed

To specify which driver to use, set the QWS_DISPLAY environment variable.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值