Inside the Qt Object Model
summary
A small calculator app demonstrates that Qt implements signals as generated functions so emit is a normal function call which packs parameter addresses into a void array and consults a generated static meta object to find the slot ID and dispatch it. Within one thread no copies occur and execution stays synchronous. When receiver lives on another thread Qt creates a QMetaCallEvent*, copies parameters appropriately, posts the event and the slot runs on the target thread.
AI-written summary · about
chapters (5)
- 0:00Introduction to Qt Object Model
- 1:04Signals and slots basics
- 6:08Signal emission call stack
- 17:04Signals slots across threads
- 26:19Q&A session
related talks
25mRust binding for Qt : How to mix QML with Rust
01h 22mArranging Items, QML Components and Debugging QML (part 4/4)
25mTools for making improved models with Qt
30mThe building blocks of QML, and how to use it with C++
26mPractical application scripting with QML
24mDesigning UI Architecture for Embedded Devices with Qt and QML
01h 22mQt Quick - Introduction to Qt Quick (part 1/4)
53mQt Quick Best Practices and Design Patterns
