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
Welcome to the third module of our "Introduction to Qt / QML" series! This module is all about explaining the various ways users interact with your application. Qt Quick comes with many elements that control different kinds of interaction: mouse input, touch input (and gestures), keyboard input.
In this video we will talk about MouseArea, the Qt Quick element that (as the name says) handles mouse input. We will show how to use it in order to make our application react to mouse presses, clicks, and so on.
There are a few lessons to be learned when we start using imperative code in our signal handlers, and why property bindings are a better choice in many cases. If you missed our earlier video about property bindings, take some time and go watch it! You can find it here: • Introduction to Qt / QML (Part 04) - Under...
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv
00:00 Introduction
00:41 Overview
01:33 Mouse Area
04:20 Property Bindings
07:04 Mouse Area Hints
08:53 Event Propagation
11:39 Signal Handlers v. Property Bindings
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