Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.0
-
None
-
Mac OS 10.9 on Macbook Air.
-
-
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 |
Gerrit Reviews
For Gerrit Dashboard: QTBUG-35893 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
80746,2 | Mac OS X: Fix pan gestures. | stable | qt/qtbase | Status: ABANDONED | +2 | 0 |
92934,8 | OS X: Fix pan gestures. | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |