Two fingers on trackpad with Qt app

I am currently trying to get the Qt application to react in the same way as using the two-finger trackpad function on a Mac. At the moment, when working in QGraphicsScene, if the user uses two fingers, the image is scaled, which is not what I want. I want the scene to scroll in the right direction.

I looked at GestureType and tried to capture gestures and use a special event with them. This part works great.

However, it seems that when using two fingers, all I catch is a pinch gesture, not something that should be a gesture (I think). From what I found here http://qt-project.org/doc/note_revisions/214/358/view , it should work with two tangent points, but that doesn't seem to be.

So is there a way to detect two fingers from the trackpad?

I am currently working with QT 4.8.2 on Mac OS X Mavericks.

Any help would be greatly appreciated.

+4
source share

All Articles