macro_rules! qt_signal {
    ($( $name:ident : $ty:ty ),*) => { ... };
}
Expand description

Declares a signal

Inside you can either declare the method signature, or write the full method.

To be used within a struct that derives from QObject

use qmetaobject::*;

#[derive(QObject)]
struct Foo {
   base: qt_base_class!(trait QObject),
   my_signal: qt_signal!(xx: u32, yy: String),
}

fn some_code(foo: &mut Foo) {
   foo.my_signal(42, "42".into()); // emits the signal
}