PySideRepFile code

The PySideRepFile type provides functionality to parse and handle Qt Remote Objects (QtRO) files, and dynamically generate Python types for QtRO sources, replicas, and PODs (Plain Old Data structures). The RepFile_tp_methods array defines the methods available on the PySideRepFile object:

  • source: Generates a dynamic Python type for a QtRO source class.
  • replica: Generates a dynamic Python type for a QtRO replica class.
  • pod: Generates a dynamic Python type for a QtRO POD class.

When generating a source or replica type, the generateDynamicType function is used, creating a new Python type based on the generated QMetaObject, and adds method descriptors for the required methods. A QVariantList for the types properties is also created, populated with default values if set in the input .rep file.