`

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

    博客分类:
  • 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.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics