From e0a6409ba7c4a4a96f80a13b24a8be0a7f58b70b Mon Sep 17 00:00:00 2001 From: Andre de la Rocha Date: Tue, 8 May 2018 16:37:46 +0200 Subject: Rename the tablet example to avoid triggering a bug in tablet drivers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems there is a subtle bug in the Wacom tablet drivers for Windows that is triggered in the very particular case where the running executable is named "tablet.exe", regardless of its installation path. It causes WM_POINTER* messages not to be delivered to the application, initially, but only after the application's window is reselected, after another application's window had been selected. It happens at least on Windows 10 systems with Wacom Bamboo tablets and drivers, and was reproduced with non-Qt-based applications also. It looks like a bad compatibility setting that makes "tablet" a cursed target name for applications using tablet functionality. It seems older versions of the drivers used to contain an executable with this name, although it seems to be absent in newer versions. Unfortunately, the Qt tablet example uses this name, which breaks it when used with upcoming WM_POINTER* messages support. Change-Id: I931cc725b9117b4604267f7b0172110ae61700de Reviewed-by: Friedemann Kleint Reviewed-by: Topi Reiniƶ Reviewed-by: Oliver Wolff --- examples/widgets/widgets/tablet/tablet.pro | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/widgets/widgets/tablet/tablet.pro b/examples/widgets/widgets/tablet/tablet.pro index 5772cd0385..647dc2c2f7 100644 --- a/examples/widgets/widgets/tablet/tablet.pro +++ b/examples/widgets/widgets/tablet/tablet.pro @@ -10,6 +10,11 @@ SOURCES = mainwindow.cpp \ tabletapplication.cpp RESOURCES += images.qrc +# Avoid naming the target "tablet", as it would create an executable +# named "tablet.exe" on Windows and trigger a bug (in the Wacom drivers, apparently) +# preventing tablet messages from being received. +TARGET = qttablet + # install target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/tablet INSTALLS += target -- cgit v1.2.3