rust-qt / ritual

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

looking for SignalOfQlistOfQPointF and SlotOfQlistOfQPointF... #122

Open Ouam74 opened 2 years ago

Ouam74 commented 2 years ago

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<Self>, list: <QListOfQPointF>) {
        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.