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
7 April 2020
Welcome to the fourth module of our "Introduction to Qt / QML" series! In this module we will explore components: that is, how to reuse QML code by encapsulating it in a separate piece that we can then create as many times as needed.
In this video, we will show the basics of creating an "out-of-line" component: a component defined in a separate QML file. This is so easy it's almost magical.
The hard part comes later: how do we define a proper API for our components, so that we can use them effectively? This involves defining properties, methods, signals, slots on our components. We are going to discuss properties in this video, and the rest in the next video of this module.
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv
00:00 Introduction
02:01 Custom Components & Items
04:56 Custom Properties
06:47 Custom Property Example
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