Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Looking for SignalOfQlistOfQPointF" and "SlotOfQlistOfQPoint" #18

Open
Ouam74 opened this issue Dec 7, 2021 · 0 comments
Open

Looking for SignalOfQlistOfQPointF" and "SlotOfQlistOfQPoint" #18

Ouam74 opened this issue Dec 7, 2021 · 0 comments

Comments

@Ouam74
Copy link

Ouam74 commented Dec 7, 2021

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant