Skip to Content
C++ Reactive Programming
book

C++ Reactive Programming

by Praseed Pai, Peter Abraham
June 2018
Intermediate to advanced
348 pages
8h 45m
English
Packt Publishing
Content preview from C++ Reactive Programming

Meta-object system

The Qt meta-object system realizes the signals and slots mechanism for inter-object communication, the dynamic property system, and run-time type information.

The Qt meta-object system is based on three key aspects:

  • QObject class: The base class that provides the advantages of the meta-object system to Qt objects
  • Q_OBJECT macro: The macro to provide in the private section of the class declarations, used to enable meta-object features, such as dynamic properties, signals, and slots
  • The MOC: It supplies each QObject subclass with the necessary code to implement meta-object features

The MOC executes before the actual compilation of a Qt source file. When the MOC finds class declarations that contain the Q_OBJECT macro, it ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Functional Programming in C++

Functional Programming in C++

Ivan Cukic

Publisher Resources

ISBN: 9781788629775Supplemental Content