[Interest] Qt and x11/MPX

Robert Voinea rvoinea at gmail.com
Sat Feb 11 10:35:53 CET 2012


Hi

I have a problem using Qt on a multi-touchscreen setup. The description of the 
problem and what I have done so far follows.

Ubuntu 10.10 / Qt 4.7.0

The required setup should work similar to a multi-seat setup, meaning that a 
user (or two users) should be able to work independently on each monitor 
(simultaneous clicks, press, release).

I configured X to use two touch screens and two pointers, one for each screen.
This setup works as expected. I even tested it with a demo app similar to Qt-
demos fingerpaint, but using native X / XInput2 calls.

http://gitorious.org/vinput

After doing this, the next step was to test Qt/X11. I compiled the demo app 
fingerpaint. ...and it does not work. I touch the screen, the pointer moves... 
but nothing else...
I even wrote a mini-app to see what is (not) happening... and all the events I 
could see were mouse{press,release,click}. No touch events. The app behaves 
like there is a single mouse and one pointer steals the other one's events 
when interaction happens simultaneously.

I looked then into the Qt source and I saw that Qt does not use XInput2... so 
this could be the problem.

On the other hand I saw that the meego/mer guys were using a xinput-mtev 
driver... but I haven't tested it yet. Probably on Monday. (Any one tested 
this?)

So... my questions are:
1. What is the current state of multitouch in Qt/X11?
2. Has anyone tested something similar?... Qt + Multitouch? on Linux?
3. Is there a solution to my problem?... 

Thank you.

-- 
Robert Voinea
IT Specialist
+4 0740 467 262

Don't take life too seriously. You'll never get out of it alive.
(Elbert Hubbard)



More information about the Interest mailing list