Chapter 12.  Meta Objects, Properties, and Reflective Programming

Table of Contents

12.1. QMetaObject - The Meta Object Pattern
12.2. Type Identification and qobject_cast
12.3. Q_PROPERTY Macro - Describing QObject Properties
12.4. QVariant Class: Accessing Properties
12.5. Dynamic Properties
12.6. MetaTypes, Declaring and Registering
12.7. invokeMethod()
12.8. Exercises: Reflection
12.9. Review Questions

[ fromfile: reflection.xml id: reflection ]

Abstract

This chapter introduces the idea of reflection, the self-examination of an object's members. Using reflective programming, you can write general-purpose operations that work on classes of varied structures. Using QVariant, a generic value-holder, you can operate on built-in types and other common types in a uniform way.