rust-qt / ritual

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

Missing Slot types? #90

Closed jlgerber closed 4 years ago

jlgerber commented 4 years ago

QTableWidget has a number of slots that don't look like they are covered in the core SlotOf... list. For instance, here is the signature for a signal:

void QTableWidget::currentItemChanged(QTableWidgetItem *current, QTableWidgetItem *previous)

What would one use to define a slot that works with this signal?

jlgerber commented 4 years ago

Realized that I don't really need to use this given that i can get the selection model and go from there...

Riateche commented 4 years ago

These slot wrappers can't be provided by qt_core because qt_core doesn't have QTableWidgetItem type. Each crate provides its own slot wrappers for arguments that are not covered by its dependencies. For QTableWidget::currentItemChanged, the corresponding slot wrapper is qt_widgets::SlotOfQTableWidgetItemQTableWidgetItem.