rust-qt/examples

Looking for SignalOfQlistOfQPointF" and "SlotOfQlistOfQPoint"

Opened this issue · 0 comments

Hi,

i am trying to dynamically "replace" the serie from a QLineSeries in a QChart (located in the main Gui) from a QThread worker function, and as a consequence i need to emit a QList(QPointF).

i need to implement the following :

#[slot(SlotOfQlistOfQPointF)]
unsafe fn on_updateval(self: &Rc, list: ) {
self.xaxis.set_range(0 as f64, N as f64);
self.series.replace_q_list_of_q_point_f(&list);
QCoreApplication::process_events_0a();
}
The problem is that there is no SignalOfQlistOfQPointF" nor "SlotOfQlistOfQPoint" in any ot the Rust-Qt libraries (qt.gui, qt.core, qt.widgets, qt.charts...)

I checked in the documentation and did not find neither "SignalOfQlistOfQPointF" nor "SlotOfQlistOfQPointF".

Is there any reason for this? If no would it be possible to implement it at some point? Is there any work around except the recursive emit of a "SignalOfQPointF".

I thank you very much in advance.

Best Regards.
Olivier.