rust-qt / ritual

Use C++ libraries from Rust
Apache License 2.0
1.22k stars 49 forks source link

Implement creating custom Qt signals from Rust #43

Closed Riateche closed 4 years ago

Riateche commented 7 years ago

(part of #7)

jlgerber commented 4 years ago

Just wondering if this is already in the works or something you have yet to figure out. This seems like the last hurdle to doing more complex work in this library.

Just having generic signal objects that have the same types as the current slots would be amazing.

Riateche commented 4 years ago

Custom signals are now implemented.

vdods commented 3 years ago

@Riateche Could you link to documentation on how to define signals and slots that take arguments of one's own custom Rust types (e.g. pub struct FancyData { x : String, y : uuid::Uuid })? I've been searching around for how to do this (I've looked at qt_core::Signal and the qmetaobject-rs crate but haven't managed to get anything to work). Thank you.