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
21 July 2025
Delegates allow you to customize how each cell in a list, table or tree is painted. This episode covers how they are implemented, and how they are instantiated on your lists, tables or trees.
Chapters:
00:00 Welcome
00:40 What is the purpose of a delegate?
02:20 What delegate super classes exists?
03:39 When shouldn't you implement your own delegate
05:49 Advertise: Let us help you go to QML
06:11 Example: BarGraphDelegate
11:55 Setting the delegates on the view
13:05 Example - country delegate - an editing delegate
17:57 udpdateEditorGeometry
21:52 Using an event filter to help focus move to the next cell
Links:
* Episode 78 - Qt Item Delegates - A Framework - https://youtu.be/R9MstFOcVnU?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
* Episode 79 - Qt Item Delegates - Some Real World Examples - https://youtu.be/iwx7vKCQ0OI?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
* Episode 80 - Editing Delegates - https://youtu.be/k-5tsMXtbi8?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
* KDAB QML Expertise: https://www.kdab.com/software-technologies/qt/
The example code showcased in this video is available here:
https://github.com/KDABLabs/kdabtv/tree/master/Programming-With-Qt-Widgets
All 'Introduction to Qt Widgets - Module 1' videos: https://www.youtube.com/playlist?list=PL6CJYn40gN6hgf7zCKF2Rv9Y0WoN8RVGf
All 'Introduction to Qt Widgets - Module 2' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6j_c41CFMprvg9EiWz0WdSy
All 'Introduction to Qt Widgets - Module 3' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6hWZO_viEf1rfjgk4E6SCKd
All 'Introduction to Qt Widgets - Module 4' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6iXUNQMb2GkEjV_oK6Xid9-
All 'Introduction to Qt Widgets - Module 5' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6h1tsLAETdrrFlsVMeYpiHI
All 'Introduction to Qt Widgets - Module 6' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6jIsRYriqN70V83t_mdDZHT
All 'Introduction to Qt Widgets - Module 7' videos: https://www.youtube.com/playlist?list=PL6CJYn40gN6hHyqD9ZxUqpd14LoHvadN7
All 'Introduction to Qt Widgets - Module 8' videos: https://www.youtube.com/playlist?list=PL6CJYn40gN6iCb8g5NSfVqX0JRFzFnxak
All 'Introduction to Qt Widgets - Module 9' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6hALniX7Fw_Ly29bg7pXBqC
Please note that non-English dubs for all KDAB videos are auto-generated. These translations have not been moderated by us and may contain inaccuracies. We appreciate your understanding and apologize for any confusion this may cause.