does anyone has a kind of "basic example" of a Rust-Qt multithreaded application using QThread and signals / slots?
I receive N points from a Oscilloscope that i need to plot in real-time in a QtChart (it's why i need to use a Qthread worker thread) then i need to pass the points from the worker thread to the GUI.
I already checked the "Rust-Qt examples" but unfortunately there is nothing very useful for my case.
I don't know the state of Qt-Rust, but always had issues.
If you can write C++, I would find a good place to split the code and write the Qt part in C++.
You can pass data to C++ via FFI (same process) or sockets (different process).
Hi,
thank you for your answer! I will give it a try for sure.
Actually my programs run very nicely in C++. I am currently using C++ or Python depending on th application.
I try to avoid C++ because in fact i try to show my company that we could easily replace C++ with RUST for future applications (curves plotting, real time data plotting...), the only requirement is that we can still use Qt5...
Replacing the GUI part is tricky so far.
Certainly possible, but more effort.
Depending on what you need to draw, there are various tools to draw vector graphics in realtime. Pathfinder is the one I am using and a bit involved in.
I would suggest avoiding low level graphics using GL, as there are many (literal) edge-cases to run into.