InterviewSolution
| 1. |
What Is Qt's Meta Object System? |
|
Answer» Qt's meta-object system provides the signals and slots mechanism for inter-object communication, run-time type INFORMATION, and the dynamic PROPERTY system. The meta-object system is BASED on three things:
The moc tool reads a C++ source FILE. If it finds one or more class declarations that contain the Q_OBJECTmacro, it produces another C++ source file which CONTAINS the meta-object code for each of those classes. Qt's meta-object system provides the signals and slots mechanism for inter-object communication, run-time type information, and the dynamic property system. The meta-object system is based on three things: The moc tool reads a C++ source file. If it finds one or more class declarations that contain the Q_OBJECTmacro, it produces another C++ source file which contains the meta-object code for each of those classes. |
|