Qt's moc and QMetaObject reflection: why? how? future?

Qt is a popular cross platform C++ framework used mainly for GUI. One of it's particularities is the use of a code generator, moc (meta object compiler), which processes the header files and is used to enable things such as signals and slots, scripting languages integration (QML) and more. In this talk we will see what moc does and how it does it. We will have a glimpse on the generated code. We will also hear what the problem of moc are, and what alternatives there are to implement reflection in C++ with Qt: Should we use LLVM's libclang to help with the parsing? Could we achieve the same result without a code generator?


Speaker: Olivier Goffart


Go back