QGraphicsView not interpreting Mac laptop touchpad correctly.

This commit is contained in:
Roman Telezhynskyi 2023-08-18 16:10:16 +03:00
parent 493b11bfd6
commit a7b0ed1171

View File

@ -149,6 +149,10 @@ GraphicsViewZoom::GraphicsViewZoom(QGraphicsView *view)
_numScheduledHorizontalScrollings(0) _numScheduledHorizontalScrollings(0)
{ {
_view->viewport()->installEventFilter(this); _view->viewport()->installEventFilter(this);
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
// Disabled because of bug QTBUG-103935
_view->viewport()->setAttribute(Qt::WA_AcceptTouchEvents, false);
#endif
_view->viewport()->grabGesture(Qt::PinchGesture); _view->viewport()->grabGesture(Qt::PinchGesture);
_view->setMouseTracking(true); _view->setMouseTracking(true);