Skip to content

Ignore touch event from MacOS touchpad

Kien Le requested to merge bug-#6-macos_touchpad_cause_error_message into master

MacOS touch pad sends a touch event when interacting with a QGraphicsView. This is unexpected, seeing as touch events are only supposed to be sent when Qt.WA_AcceptTouchEvents is set on a widget, causing the touch event sent by the touch pad to behave weirdly. This, in turn causes Qt to display a warning message. This MR fixes the issue by clearing Qt.WA_AcceptTouchEvents on all QGraphicsView instances.

For more information, refer to

Closes #6

Merge request reports