QtTouchEvent - This example demonstrates how to use multi-touch device, events and gestures.
SYNOPSIS:
DESCRIPTION:
QtTouchEvent demonstrates how to use multi-touch gesture in Qt. It provides a window you can touch with several fingers to manipulate the cone. SoQtTouchScreen is register, touchEvent can be released. Scale factor and rotare recognizers are registered in this touchScreenDevice. So every touch event will be analysed by them and gesture events will be released. A callback collects these events and apply modifications on camera orientation and position, on SoTransform or on cone color. Pinch gesture allow to zoom on the picture changing camera height. Rotate gesture allow to rotate camera around z axis. Double Tap or long tap gesture allow to change cone color. Drag gesture with one finger allow to translate the shape.
SEE ALSO
SoScaleGestureRecognizer, SoRotateGestureRecognizer, SoDoubleTapGestureRecognizer, SoLongTapGestureRecognizer, SoQtTouchScreen
FILES:
-
Inventor/examples/MultiTouch/QtTouchEvent/QtTouchEvent.cxx