summaryrefslogtreecommitdiffstats
path: root/examples/widgets/richtext
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2018-09-13 13:42:16 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2018-09-25 03:57:35 +0000
commitb4b706d454b785aecbec5cefe46e2a6d7572edbf (patch)
tree85b019c249b27fb989af23ca38716542b2b1d745 /examples/widgets/richtext
parent8a763507885309666ae8500c9bdea9af5d46be28 (diff)
Ensure that QTabletEvent is not pre-accepted before sending
In QWidget-world it's normal for input events to have the accepted flag false by default, so that it's obvious after visiting a widget subclass that does not override a particular handler function that it did not handle that event type at all. For tablet events in particular, the contract (to which we've been paying more attention to ensure that QTBUG-47007 remains properly fixed) is that if a QTabletEvent is not accepted, a mouse event will follow. Tablet-unaware applications need to get the same mouse events from a Wacom stylus as they would receive from an actual mouse. In this case the issue was missing hover events (mouse movements in which no mouse button is pressed). Without those, the enterEvent and exitEvent virtuals are also not invoked properly. Task-number: QTBUG-47007 Task-number: QTBUG-65199 Change-Id: I957005aad9d2bf85a3a41bbdebe3e046e34dee4d Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'examples/widgets/richtext')
0 files changed, 0 insertions, 0 deletions