QTouchEvent instead of QMouseEvent on Linux

I am trying to handle QTouchEvent from an M3 touchscreen in Qt 5.9. I use the Qt Finger print example and it works fine on Windows 7, but on Ubuntu 16.04 I get mouse events instead of touch events. Is it Qt foult or the wrong OS configuration?

The larger QTouchDevice::devices().size() always 0.

+13
c ++ linux qt multiplatform touchscreen
source share
1 answer

It seems the problem is the same as here: https://askubuntu.com/questions/961341/touchscreen-is-being-recognized-as-a-mouse

In response, there seems to be a kernel fix for multi-touch. It details how to upgrade your kernel.

0
source share

All Articles