Module qmetaobject::prelude
source · Expand description
Module intended for glob import.
Re-exports
pub use crate::qtdeclarative::qml_register_enum;
pub use crate::qtdeclarative::qml_register_module;
pub use crate::qml_register_type;
pub use crate::qrc;
pub use crate::QAbstractListModel;
pub use crate::QEnum;
pub use crate::QObject;
pub use crate::QObjectBox;
pub use crate::QPointer;
pub use crate::QQmlExtensionPlugin;
pub use crate::QQuickItem;
pub use crate::QQuickView;
pub use crate::QmlEngine;
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
- Wrapper around
QByteArray
class. - Wrapper around
QColor
class. - Wrapper around
QDate
class. - Wrapper around
QDateTime
class. - Wrapper around
QModelIndex
class. - Bindings for
QRectF
class. - Wrapper around
QString
class. - Wrapper around
QTime
class. - Wrapper around
QVariant
class.
Derive Macros
- Implementation of #[derive(QEnum)]
- Implementation of #[derive(QObject)]