Qt's moc and QMetaObject reflection
summary
Explains what moc actually generates for Qt's QMetaObject, shows a clang-based reimplementation called mng that replaces moc using clang and that compiles Qt and passes Qt tests, and demos a header-only C++14 approach called verree that builds the same meta data with constexpr and heavy macros. Reports that mng works but adds clang dependency and can be slower unless used as a compiler plugin, and that verree avoids moc but increases compile time and yields brutal template error messages.
AI-written summary · about
chapters (15)
- 0:00Qt's moc and QMetaObject
- 3:16Qt features via moc
- 9:22QMetaObject structure
- 14:25Moc's code generation
- 18:48Q&A on moc
- 19:08Mock NG with Clang
- 29:17Mock NG performance
- 31:08Verdeg: macros and templates
- 37:37Future of moc and reflection
- 41:07Q&A on macros
- 43:21Clang plugins for moc NG
- 45:14Qt's stance on moc
- 46:18Mock NG motivation
- 47:45Q&A on Clang docs
- 51:19Closing remarks








