Module qmetaobject::prelude

source ·
Expand description

Module intended for glob import.

Re-exports

Macros

  • This macro must be used once as a type in a struct that derives from QObject. It is anotate from which QObject like trait it is supposed to derive. the field which it annotate will be an internal property holding a pointer to the actual C++ object
  • This macro can be used to declare a method which will become a meta method.
  • Equivalent to the Q_PLUGIN_METADATA macro.
  • This macro can be used as a type of a field and can then turn this field in a Qt property. The first parameter is the type of this property. Then we can have the meta keywords similar to these found in Q_PROPERTY.
  • Declares a signal

Structs

Derive Macros

  • Implementation of #[derive(QEnum)]
  • Implementation of #[derive(QObject)]