Qt RaspberryPi Touch screen evedev not rotating, tslib not catching MultiPointTouchArea
-
Qt RaspberryPi Touch screen
I Cross compiled QT 5.10.1 to RaspberryPi 2 (stretch). Using Virtualbox with Ubuntu 16.04 x64
With as waveshare 10.1 inch legacyWhen using evedev the rotation is off by 90.
QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event1:rotate=90 does not work
evedev does catch touch events but not mouse eventsWhen using tslib, the coordinates works correctly but my QML does not catch any mouse or touch events.
When I export TSLIB_PLUGINDIR=/usr/local/lib/ts qt results in a segmentation fault.
So this is my current configuration
export QT_QPA_EGLFS_HIDECURSOR=1
export QT_QPA_EGLFS_DISABLE_INPUT=1
export QT_QPA_GENERIC_PLUGINS=Tslib
export QT_QPA_EGLFS_PHYSICAL_WIDTH=274
export QT_QPA_EGLFS_PHYSICAL_HEIGHT=187
export QT_QPA_EGLFS_WIDTH=1024
export QT_QPA_EGLFS_HEIGHT=600export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=none
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercalThe above config works but not for the code below
MultiPointTouchArea {
anchors.fill: parent
mouseEnabled: false
onTouchUpdated: {
console.log("Top touch area contains:",
touchPoints.length,
"touches.")
}
}I need either of the two to work or a work around for a tumbler to know it has been selected.