Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
14 February 2020
Touch input is usually associated with gestures. Apart from tapping on a display, which could be just the analogous of a mouse click, modern touch interfaces are expected to recognize a number of other patterns: a "flick" motion, for instance, when scrolling; or a pinch, when zooming using two fingers.
This video explains the basics of gesture handling in Qt Quick using the builtin elements. We will see how easy it is to create touch interfaces by simply composing these elements together with the ones that we already know by now (images, rectangles, text and so on).
We will discuss the swipe gesture (navigating one page at a time) in an upcoming video: https://youtu.be/27YEH8WEdHc . If you're really eager to know everything about it, check out the SwipeView element coming from Qt Quick Controls 2 ( https://doc.qt.io/qt-5/qml-qtquick-controls2-swipeview.html ) or simply use a ListView set to snap one item at a time ( https://doc.qt.io/qt-5/qml-qtquick-listview.html#snapMode-prop ).
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Upgrade your applications from Qt 5 to Qt 6 with KDAB’s migration services. Get a free migration assessment and join a hands-on workshop to prepare your team for a successful transition!
Learn more