Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.2.0
-
Fix Version/s: 5.4.0
-
Component/s: GUI: Complex Input methods, Widgets: Gesture Support
-
Labels:None
-
Environment:Mac OS 10.9 on Macbook Air.
-
Platform/s:
-
Commits:30bb830fc1b73834f459becaa141d0f7a1afa51c
Description
With this test code, only pinch is detected.
#include <QMainWindow> #include <QGestureEvent> #include <QPanGesture> #include <QPinchGesture> #include <QDebug> class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow() { grabGesture(Qt::PanGesture); grabGesture(Qt::PinchGesture); } bool event(QEvent* event) { if (event->type() == QEvent::Gesture) { QGestureEvent *gesture = static_cast<QGestureEvent*>(event); if (QPinchGesture *pinch = static_cast<QPinchGesture *>( gesture->gesture(Qt::PinchGesture))) { qDebug() << "Pinch"; } if (QPanGesture *pan = static_cast<QPanGesture *>( gesture->gesture(Qt::PanGesture))) { qDebug() << "Pan"; } } return QWidget::event(event); } };
Attachments
Issue Links
- relates to
-
QTBUG-15768 Swipe gesture doesn't work with the imagegestures example
-
- Open
-
1.
|
Does not work on Windows 8.1 either |
![]() |
Open | Unassigned |