QTabletEvent - wacom tablet support for Qt 4 but not Qt 5? [RESOLVED]
-
UPDATE 31 Dec 2014: I've tested this application in Qt 5,4, support for wacom tablets seems to have returned. In fact they announced it "in this blog post":http://blog.qt.digia.com/blog/2014/10/17/qt-5-4-beta-available/ :
bq. Support for Wacom tablets has been improved and unified across platforms in Qt 5.4 with the help and support by KDE/Krita developers. QTabletEvent now has information about which stylus buttons are pressed, rotation and tangentialPressure have consistent ranges across platforms and proximity events include the type of stylus or other tool in use. With these changes there is one less obstacle to upgrade to Qt 5.
I have decided to post here cause I've searched everywhere I could find... to no avail.
!https://lh6.googleusercontent.com/-loCpyq5Wc8s/UV5fJ4zSm-I/AAAAAAAABOo/8ylHNR1_g40/s457/Qt4TabletExample.png(Screenshot of Qt 4.8.4 Tablet Example)!
above is a screenshot of an example program called Tablet Example which you can search from the examples folder. Problem is I can't get pen input in the Qt 5 version.
When I checked the differences between the source codes between Qt 4 and Qt 5, there seemed to be no significant changes other than removing of symbian and maemo support and replacing the header <QtGui> with <QtWidgets>.
I'm also assuming it's a problem with Qt 5(currently using Qt 5.0.1 MinGW) since I could run this with Qt 4.8.4 in both Windows 7 and Linux Mint 14 32bit.
Why is this so? Is there a flaw in this particular example, or are the creators of Qt really considering removing tablet support in Qt 5, or is this feature simply put on hold? I highly doubt rumors(read "here":http://www.phoronix.com/scan.php?page=news_item&px=MTE3OTU and "here":http://libregraphicsworld.org/blog/entry/wacom-apocalypse-in-qt5-just-not-today) about Qt 5 removing wacom tablet support considering important players like maya, mari and nuke depends on Qt tablet support.
I'm using a medium sized wacom bamboo fun and touch(CTH-670).
-
Hi bruce
have you read the file qtbase/src/plugins/generic/evdevtablet/README:
"Known to work with 3rd generation Wacom Bamboo Pen & Touch. Recent
tablets like this one may need an updated wacom kernel driver for
kernels 3.2 and older.
"So it seems that the Qt guys have made some tests.
Question 1:
What do you mean with: "Problem is I can’t get this program working in Qt 5. "
Does it not compile or does it not run or does the touchevent not work?Question 2:
How did you start the application? Have you add special parameters like: -plugin evdevtouch:/dev/input/event<x> where <x> is the event device which your system provides. -
Grateful 4 ur reply Juergen.
The tablet example builds and run in both Qt 4.8.4 and Qt 5.0.1, both MinGW. The difference is that the Qt 4 version detects pen input and paints as expected with pressure(very impressive btw) whereas the Qt 5 doesn't respond to pen input. Same results for both Linux and windows.
I didn't test with the parameters you posted. All I did was open the example and build and run it. Get back to you after I tried it. Thanks!!
-
k. I don't get the "-plugin evdevtouch:/dev/input/event<x>" part. I'm wondering why is it necessary when things just work in Qt 4. And I don't have a "qtbase/src/plugins/generic/evdevtablet/..." directory. I'm assuming I'd only have that if I'm compiling Qt 5 from source?
I'm quite new to Qt - just so to put things in context.
-
Yes, you have to compile it because Mint and Ubuntu are configure only a part of Qt.
So I would suggest that you download Qt5.0.1 as tar.ball or Qt5.0.2 from git and compile it.
Then you will be sure that you will get the plugin evdevtouch -
I'm almost afraid compiling the Qt from source would not work... why isn't evdevtouch in Qt 5 to begin with? Have you got the tablet example to work in Qt 5 by doing this? I so wish someone wrote a guide about this or smth...
-
Hey all! I know this is an old post, but it does surfaced in search engine results (for example googling "qt 5 wacom")... so... I've tested this application again in Qt 5.4, and support for wacom tablets seems to have returned!! :D In fact they announced it "in this blog post":http://blog.qt.digia.com/blog/2014/10/17/qt-5-4-beta-available/ :
bq. Support for Wacom tablets has been improved and unified across platforms in Qt 5.4 with the help and support by KDE/Krita developers. QTabletEvent now has information about which stylus buttons are pressed, rotation and tangentialPressure have consistent ranges across platforms and proximity events include the type of stylus or other tool in use. With these changes there is one less obstacle to upgrade to Qt 5.
-
Hey all! I know this is an old post, but it does surfaced in search engine results (for example googling "qt 5 wacom")... so... I've tested this application again in Qt 5.4, and support for wacom tablets seems to have returned!! :D In fact they announced it "in this blog post":http://blog.qt.digia.com/blog/2014/10/17/qt-5-4-beta-available/ :
bq. Support for Wacom tablets has been improved and unified across platforms in Qt 5.4 with the help and support by KDE/Krita developers. QTabletEvent now has information about which stylus buttons are pressed, rotation and tangentialPressure have consistent ranges across platforms and proximity events include the type of stylus or other tool in use. With these changes there is one less obstacle to upgrade to Qt 5.