Arranging Items, QML Components and Debugging QML (part 4/4)
summary
Shows that non-trivial data belongs in C++: export a QAbstractItemModel in C++ to QML for lazy loading and DB or filesystem access, demonstrated by a KDE mail breadcrumb proof of concept wired into a QDeclarativeView via context properties. Explains exposing C++ visuals and logic by subclassing QDeclarativeItem, declaring properties with notify signals, using qmlRegisterType and qml module/versioning, and building plugins. Notes: runtime rendering is fine but startup memory and load time can be significant on low‑end embedded devices.
AI-written summary · about
chapters (35)
- 0:00Introduction
- 1:05Non-trivial models in C++
- 2:12KDE breadcrumb navigation demo
- 3:15Integrating QML into C++ apps
- 8:18QML context and properties
- 10:50Real-world model implementations
- 11:13Grid views and delegates
- 13:18XML models with XPath
- 16:50Selection and highlighting in views
- 20:37Optimizing view delegates
- 21:37QML and C++ low-level plumbing
- 22:21Custom items vs components
- 24:25Custom item properties and aliases
- 26:51Custom signals in QML
- 28:41Creating a custom checkbox
- 32:09QML modules and versioning
- 35:20Module loading and namespacing
- 37:50QML runtime and C++ integration
- 38:11QML virtual machine basics
- 40:17Custom C++ items in QML
- 43:46Registering custom types
- 45:13Exposing C++ properties to QML
- 47:25Avoiding circular property updates
- 48:49Custom C++ items summary
- 49:32QML styling challenges
- 53:06Painter state management
- 54:10QML documentation and bugs
- 54:32Signals from C++ classes
- 57:02Calling C++ methods from QML
- 59:55Complex types and custom enums
- 1:03:28Custom type registration examples
- 1:07:00List properties for custom types
- 1:08:06QML plugins and deployment
- 1:12:33Loading and using plugins
- 1:14:20Q&A session
related talks
30mThe building blocks of QML, and how to use it with C++
53mQt Quick Best Practices and Design Patterns
49mQt Quick Best Practices and Design Patterns
01h 02mAnatomy of real world apps, Qt Quick and C++
24mDesigning UI Architecture for Embedded Devices with Qt and QML
25mRust binding for Qt : How to mix QML with Rust
28mA Desktop UI with Qt Quick
26mPractical application scripting with QML
