Results 1 to 4 of 4

Thread: QTabletEvent instead of QTouchEvent

  1. #1
    Join Date
    Nov 2013
    Posts
    4
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Question QTabletEvent instead of QTouchEvent

    Hi everyone,

    I'm trying to use a Cintiq 24HD screen (multi-touch + stylus tablet) under Ubuntu 12.04. Things work great on Windows 7 so far.
    On Ubuntu on the other hand, I'm facing a few difficulties :
    Since Qt4 doesn't handle it on Ubuntu, and only returns QMouseEvents, I tried with Qt5. By default, Qt5 had the same behavior as Qt4 on that point.

    Following the guide I found there http://guide.x21.ch/2012/12/07/linux-multitouch/, things got a bit better : I now have QTabletEVents ! (tried with both Qt 5.0.0 and 5.1.1 SDKs, with identical results).

    This is a good first step, but when I try the FingerPaint example from Qt, as well as my own app, nothing happens (of course, only TouchEvent are handled), and even worse : the app crashes as soon as I use a second finger with the following error : thus I can't use multi-touch.

    Qt Code:
    1. 1ASSERT: "dev" in file qxcbconnection_xi2.cpp, line 337
    To copy to clipboard, switch view to plain text mode 

    Multi-touch works on my machine, validated with https://wiki.ubuntu.com/Multitouch/Testing/

    Every post i've found about that were posted quite a long time ago, and are the ones that helped me to get where I am now, so I figured there would probably be some changes since that time. I didn't find anything about receiving the wrong QEvent though.
    So, is there something I'm missing there ? Is there any ubuntu touch/multitouch support yet ?

    Thanks in advance
    Antoine

  2. #2
    Join Date
    Nov 2013
    Posts
    4
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QTabletEvent instead of QTouchEvent

    Hi
    I managed to get TouchEvents to work by adding arguments on my qt app :
    Qt Code:
    1. sudo ./fingerpaint -plugin evdevtouch:/dev/input/event9
    To copy to clipboard, switch view to plain text mode 
    (event9 being my wacom's "touch finger" device).
    This way, Touch events are correctly interpreted.

    However, I still have the second finger issue (i.e. the app crashes as soon as i use a second finger with the message displayed in my first post).
    I tried removing wacom driver as suggested here ( https://bugs.launchpad.net/ubuntu/+s...om/+bug/901630 ) with no change in Qt's behavior.

    Still looking for any advice or help or any link.

    Thanks !
    Antoine
    Last edited by Be.Antoine; 20th November 2013 at 14:20.

  3. #3
    Join Date
    Nov 2013
    Posts
    4
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QTabletEvent instead of QTouchEvent

    Small Bump

    I still can't figure out what the issue is. I tried different versions of Qt (from 4.8 to 5.1), and all have the same behavior. I can't find any official documentation about using wacom tablets as touch device, and not that much either about using multi-touch devices with Qt. So far everything I found was quite hack-ish. It really looks like multi-touch under ubuntu is not very well supported, but I hope I'm just wrong on that point.

  4. #4
    Join Date
    Nov 2013
    Posts
    4
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QTabletEvent instead of QTouchEvent

    Hello again.

    I would really appreciate if anyone who has been successfully using a muti-touch device on ubuntu using Qt would at least explain me how they managed to do it.

    Thanks in advance.
    Antoine

Similar Threads

  1. How to simulate QTouchEvent using mouse
    By dpatel in forum Qt Programming
    Replies: 5
    Last Post: 28th April 2016, 01:40
  2. QTouchEvent issue
    By turcomas in forum Qt Programming
    Replies: 7
    Last Post: 24th December 2014, 17:56
  3. How to set QTouchEvent::TouchPoint primary?
    By elindros in forum Qt Programming
    Replies: 1
    Last Post: 21st January 2013, 19:20
  4. QTouchEvent Not Sending
    By QbelcorT in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 25th November 2010, 09:45
  5. Multiple widgets to receive QTouchEvent
    By jlin in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2009, 04:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.