Programming with Qt Quick 4/6 - Visual Elements Part 2
summary
Covers building UIs with Qt Quick models and views: uses list model and XML list model with JavaScript API (append, insert, get) to supply named properties for delegates, and visual item model to supply ready-made QML items. Shows list view, grid view and path view behavior, header/footer/highlight components, image scaling to 64x64 with smooth and preserveAspectFit, and that list view reuses only visible delegates while repeater instantiates all items; cacheSize is tunable for smoother scrolling. Notes shadowing limitation for model properties and some version-specific attached-property bugs.
AI-written summary · about
chapters (19)
- 0:00Introduction to data models
- 1:04List and XML models
- 1:44Visual item models
- 3:08Delegates and components
- 4:39Repeaters and delegates
- 6:03List model manipulation
- 7:51Advanced visual models
- 9:21Types of views
- 11:07List view performance
- 12:49View decorations
- 15:39Delegate relationships
- 17:06Sectioning lists
- 18:50Complex item delegates
- 20:51Grid view example
- 22:46State-based delegates
- 28:14Debugging view properties
- 32:23XML list models
- 36:22Flickable views
- 36:58Customizing highlights
related talks
25mBest Practices for using QML and QtQuick
02h 16mWORKSHOP: Back to Basics: writing a model
30mThe building blocks of QML, and how to use it with C++
23mQt Quick : Don't make these mistakes!
49mHow to scale QML based projects an Architecture vision
40mQt Beyond 6.8
01h 00mQt for MCUs – A Deep Dive
28mImplementing Modern Design Patterns with Qt
