QT使用触摸屏

作者:fly 发布于:2017-1-5 11:10 分类:Linux


设置好对应的环境变量即可

export TSLIB_ROOT=/usr/local/tslib

export TSLIB_TSDEVICE=/dev/input/event2


export TSLIB_TSEVENTTYPE=H3600

export TSLIB_CONFFILE=/usr/local/tslib/etc/ts.conf

export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts

export TSLIB_CALIBFILE=/etc/pointercal

export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts

export TSLIB_CONSOLEDEVICE=none

export TSLIB_FBDEVICE=/dev/fb0


export QWS_MOUSE_PROTO=Tslib:/dev/input/event2

export QWS_KEYBOARD="TTY:/dev/tty1"

export PATH=$QTDIR/bin:$PATH

export QT_PLUGIN_PATH=/usr/local/arm/qt-4.7.1/plugins/

export QT_QWS_FONTDIR=/usr/local/arm/qt-4.7.1/lib/fonts/

export LD_LIBRARY_PATH=$QTDIR/plugins/qtopialmigrate/:$QTDIR/qt_plugins/imageformats/:$QTDIR/lib:/usr/local/tslib/lib:$LD_LIBRARY_PATH

export QWS_DISPLAY="Transformed:Rot90:LinuxFb:mmWidth76:mmHeight44:1"

export LANG="en_US"



发表评论:

 
Powered by emlog sitemap