Is there any digital Waveform viewer control available in QT?
-
Is there any digital Waveform viewer control available in QT. Or any easy way to do a digital waveform viewer control by our self?
-
welcome to devnet
The "QWT project":http://qwt.sourceforge.net/index.html might have solutions for what you are looking for.
-
It is fairly easy to make one, either load a whole file or buffer part of it and use the sample values to paint the waveform.
Naturally, with QWT all that work is done for you, and there are lots of options, but making your own custom waveform display widget is fairly easy.
-
Thanks for the quick response. Can we have useful features like ZoomIn, ZoomOut, Scrolling, Editing etc on this control?
-
I don't think the QWT widgets support editing, they are for visualization purposes, but I might be wrong. IF you have some C++ programming experience you can easily implement those features in your own, custom widgets.
Consider a widget that visualizes a short buffer, you load the visualized file into the buffer, scrolling moves the buffer back and forth along the file, zooming just makes the buffer shorter or longer, and you can easily bind the visualization to work both ways, reading from AND writing data to the buffer and respectively to the file.
-
Can anyone give some logic for doing zoom operations without affecting the performance. Here i have plotted the digital waveform by calling multiple number of addLine function in the QGraphicsScene.
-
Thanks. I will have a try and come back.
-
Hi Andre, the scale function is working as expected.