Qt Quick Best Practices and Design Patterns
summary
Open-source Qt Media Hub (an XBMC clone) shows QML for presentation and C++ as the runtime: keep business logic and models in C++, expose types with qmlRegisterType not context properties, prefer typed Q_PROPERTY with notify and avoid QVariant, use QDeclarativeListProperty for mutable lists, implement one-time init in componentComplete via QDeclarativeParserStatus, share stateless JS with pragma library, control image memory with sourceSize, and favor many small QML components over huge files.
AI-written summary · about
chapters (32)
- 0:00Introduction
- 2:15Agenda
- 2:58What is Qt
- 3:47Qt vs JavaScript
- 5:11ModelView Pattern
- 5:30Presentation Layer Pattern
- 5:45One Way Traffic
- 6:10Qt Strength
- 7:15Two Ways in Qt
- 7:26MyButton
- 7:47Person
- 8:18Context Properties
- 9:35Exporting C to Qt
- 10:46Properties in Qt
- 13:36Property Groups
- 14:36Multiple Signals
- 15:39Qt Variant Properties
- 18:01Qt declarative properties
- 18:24Qt declarative property map
- 18:57Questions
- 19:42Design declaratively
- 21:28Order of components
- 22:20Dynamic scoping
- 24:00Quiz
- 26:38QML
- 30:18Other Tips
- 31:39JavaScript Stuff
- 33:46Model Layout
- 35:22Model Data
- 36:28Graphics Performance
- 37:59Image Friendly UI
- 38:52Qt Media Hub
related talks
30mThe building blocks of QML, and how to use it with C++
01h 22mArranging Items, QML Components and Debugging QML (part 4/4)
01h 22mQt Quick - Introduction to Qt Quick (part 1/4)
24mThe Roadmap: Next Generation Qt (part 2/2)
24mDesigning UI Architecture for Embedded Devices with Qt and QML
52mThe 8 mistakes of QtQuick newcomers
46mQt Quick Controls Re engineered
28mHow to Develop with Qt for Multiple Screen Resolutions
