I created a Qt Application with Qt Creator 3.3.1, using Qt embedded 4.8.6 for a Cortex A5. It runs on a board with Linux embedded and a touchscreen. The filesystem was created with Buildroot 2015.08. I'm using a resistive touchscreen calibrated with ts_calibrate. The Qt Application works, but I often get the wrong coordinates. For example, when I push on a button, sometimes the program takes the coordinates related to another point of the touchscreen, giving the idea that the button pushed doesn't work properly.
My Qt enviroment variable are:
export TSLIB_CALIBFILE='/etc/pointercal'
export TSLIB_CONFFILE='/etc/ts.conf'
export TSLIB_PLUGINDIR='/usr/lib/ts'
export TSLIB_TSDEVICE=`cat /etc/ts.dev 2>/dev/null`
export QWS_DISPLAY=LinuxFB:mmWidth=800:mmHeight=480
export QWS_MOUSE_PROTO=Tslib:/dev/input/event0
If I try to use another Qt Application (for example the Qt demos created with Buildroot) I get the same problem. Is it a bug of Qt 4.8.6 or something? Can anyone help me? Thank you