Macro qmetaobject::qt_plugin[][src]

macro_rules! qt_plugin {
    ($($t:tt)*) => { ... };
}

Equivalent to the Q_PLUGIN_METADATA macro.

To be used within a struct that derives from QObject, and it should contain a string which is the IID

#[derive(Default, QObject)]
struct MyPlugin {
    base: qt_base_class!(trait QQmlExtensionPlugin),
    plugin: qt_plugin!("org.qt-project.Qt.QQmlExtensionInterface/1.0")
}