In my Qt5 application I have some C++ and some QML working in harmony (aka sending signals back and forth).
At this point I want to implement a widget that shows a real-time updated visualization of a playing audio stream in forms of the actual waveform showing in my QML. So I wonder which alternatives ways exist to solve this? What is the easiest alternative to code and which alternative has the best performance?
My naive ideas are:
PS: I already have access to the actual samples to generate the visualization from, however if you have a clever solution to this as well then I would be overjoyed!
Thanks
You could subclass QQuickItem. Also, there is a subclass, QQuickPaintedItem that allows you to draw with a QPainter.
Here you have an example of QQuickPaintedItem usage
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With