Macro qmetaobject::qt_plugin
source · macro_rules! qt_plugin { ($($t:tt)*) => { ... }; }
Expand description
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
use qmetaobject::*;
#[derive(Default, QObject)]
struct MyPlugin {
base: qt_base_class!(trait QQmlExtensionPlugin),
plugin: qt_plugin!("org.qt-project.Qt.QQmlExtensionInterface/1.0")
}