Qt for Embedded Linux Environment Variables

(http://doc.qt.nokia.com/4.6/qt-embedded-envvars.html#qws-display)

These environment variables are relevant to Qt for Embedded Linux users.

VariableDescription
POINTERCAL_FILESpecifies the file containing the data used to calibrate the pointer device.

See also QWSCalibratedMouseHandler and Qt for Embedded Linux Pointer Handling.

QT_ONSCREEN_PAINTIf defined, the application will render its widgets directly on screen. The affected regions of the screen will not be modified by the screen driver unless another window with a higher focus requests (parts of) the same region.

Setting this environment variable is equivalent to setting the Qt::WA_PaintOnScreen attribute for all the widgets in the application.

See also the Qt for Embedded Linux graphics rendering documentation.

QWS_SW_CURSORIf defined, the software mouse cursor is always used (even when using an accelerated driver that supports a hardware cursor).
QWS_DISPLAYSpecifies the display type and framebuffer. For example, if the current shell is bash, ksh, zsh or sh:
 export QWS_DISPLAY=<driver>[:<driver specific options>]...
         [:<display num>]

The valid values for the <driver> argument are LinuxFbQVFbVNCTransformedMulti and keys identifying custom drivers, and the <display num>argument is used to separate screens that are using the same screen driver and to enable multiple displays (see the Running Qt for Embedded Linux Applications documentation for more details).

The driver specific options are described in the display management documentation.

QWS_SIZESpecifies the size of the Qt for Embedded Linux window which is centered within the screen. For example, if the current shell is bash, ksh, zsh or sh:
 export QWS_SIZE=<width>x<height>
QWS_MOUSE_PROTOSpecifies the driver for pointer handling. For example, if the current shell is bash, ksh, zsh or sh:
 export QWS_MOUSE_PROTO=<driver>[:<driver specific options>]

The valid values for the <driver> argument are MouseManIntelliMouseMicrosoftVR41xxLinuxTPYopyTslib and keys identifying custom drivers, and the driver specific options are typically a device, e.g., /dev/mouse for mouse devices and /dev/ts for touch panels.

Multiple keyboard drivers can be specified in one go:

 export QWS_MOUSE_PROTO="<driver>[:<driver specific options>]
         <driver>[:<driver specific options>]
         <driver>[:<driver specific options>]"

Input will be read from all specified drivers. Note that the Vr41xx driver also accepts two optional arguments: press=<value> defining a mouseclick (the default value is 750) and filter=<value> specifying the length of the filter used to eliminate noise (the default length is 3). For example:

 export QWS_MOUSE_PROTO="Vr41xx:press=500:/dev/misc/ts"

See also Qt for Embedded Linux Pointer Handling.

QWS_KEYBOARDSpecifies the driver and device for character input. For example, if the current shell is bash, ksh, zsh or sh:
 export QWS_KEYBOARD=<driver>[:<driver specific options>]

The valid values for the <driver> argument are SL5000YopyVR41xxTTYUSB and keys identifying custom drivers, and the driver specific options are typically a device, e.g., /dev/tty0.

Multiple keyboard drivers can be specified in one go:

 export QWS_KEYBOARD="<driver>[:<driver specific options>]
         <driver>[:<driver specific options>]
         <driver>[:<driver specific options>]"

Input will be read from all specified drivers.

See also Qt for Embedded Linux Character Input.


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值