Package: qtbase5-dev Version: 5.7.1+dfsg-3+b1 Severity: normal I'm using a Lenovo ThinkPad Yoga 2, which has a touch screen and a stylus. The stylus triggers Qt tablet events.
Trying to fix a problem in Okular [0], I noticed that the QApplication class does not receive the events TabletEnterProximity and TabletLeaveProximity, even though it should, according to the Qt documentation [1]. To test this, try the example tablet application from [1]. It should change the cursor shape whenever the stylus comes near the screen, but the cursor never changes. Adding a debug line into TabletApplication::event (which inherits from QApplication) shows that QApplication actually receives very few events at all. Basically only QApplicationStateChangeEvents and QTimerEvents. On the other hand, my system does know about the stylus being close to the screen. xev sees it, and in the example from [1] the cursor moves to the correct position when I move the stylus close to, but not onto the screen. This is a regression. It used to work with a Debian testing installation from about six month ago when I first wrote the patch in [0]. Has there been some change to Qt in the meantime that could trigger this? What can I do to debug this further? Thanks for your help! [0]: https://git.reviewboard.kde.org/r/128858/ [1]: http://doc.qt.io/qt-5/qtwidgets-widgets-tablet-example.html -- System Information: Debian Release: 9.0 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages qtbase5-dev depends on: ii libgl1-mesa-dev [libgl-dev] 13.0.6-1 ii libglu1-mesa-dev [libglu-dev] 9.0.0-2.1 ii libqt5concurrent5 5.7.1+dfsg-3+b1 ii libqt5core5a 5.7.1+dfsg-3+b1 ii libqt5dbus5 5.7.1+dfsg-3+b1 ii libqt5gui5 5.7.1+dfsg-3+b1 ii libqt5network5 5.7.1+dfsg-3+b1 ii libqt5printsupport5 5.7.1+dfsg-3+b1 ii libqt5sql5 5.7.1+dfsg-3+b1 ii libqt5test5 5.7.1+dfsg-3+b1 ii libqt5widgets5 5.7.1+dfsg-3+b1 ii libqt5xml5 5.7.1+dfsg-3+b1 ii libxext-dev 2:1.3.3-1+b2 ii qt5-qmake 5.7.1+dfsg-3+b1 ii qtbase5-dev-tools 5.7.1+dfsg-3+b1 ii qtchooser 63-g13a3d08-1 Versions of packages qtbase5-dev recommends: ii libqt5opengl5-dev 5.7.1+dfsg-3+b1 Versions of packages qtbase5-dev suggests: ii default-libmysqlclient-dev 1.0.2 pn firebird-dev <none> pn libegl1-mesa-dev <none> ii libgl1-mesa-dev 13.0.6-1 ii libpq-dev 9.6.2-2 ii libsqlite3-dev 3.16.2-3 ii unixodbc-dev 2.3.4-1 -- no debconf information