Lightning Talk, A new way for creating QML models from C++
summary
Provides a template + metaobject-based class called the qql object list model that creates a QObject-backed QAbstractListModel with one line of C++, auto-generates role names from QObject properties, and wires each property change signal to emit dataChanged so delegates update incrementally. It offers primary key indexing, memory ownership rules, nested models, and a special cute object role to access the underlying QObject. Implementation uses a large macro to cut property boilerplate, has a qql variant list model alternative, is open source and battle tested in multiple projects.
AI-written summary · about
chapters (13)
- 0:00Introduction and motivation
- 3:09C++ and QML integration rules
- 6:51Model View Controller in Qt
- 9:22Types of models in Qt Quick
- 13:16QAbstractListModel limitations
- 16:33Ideal model solution requirements
- 19:03QQmlObjectListModel introduction
- 22:14Simplifying QML properties in C++
- 25:09Live code demonstration
- 35:18Nested models and real-world example
- 37:56Performance and implementation details
- 40:24Technical design choices
- 41:52Resources and conclusion
related talks
01h 12mQt Quick for C++ Developers
59mBetter UI/HMI development workflows with Qt/QML
01h 13mQt Tips and Tricks
26mPractical application scripting with QML
01h 10mQt Quick - Rapid User Interface Prototyping
27mQML Rapid Prototyping
46mQt Quick Designer
56mUsing Qt Quick for Rapid UI Prototyping and Development
