Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Is there any digital Waveform viewer control available in QT?

    General and Desktop
    3
    10
    6829
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JothiMurugeswaran last edited by

      Is there any digital Waveform viewer control available in QT. Or any easy way to do a digital waveform viewer control by our self?

      1 Reply Last reply Reply Quote 0
      • K
        koahnig last edited by

        welcome to devnet

        The "QWT project":http://qwt.sourceforge.net/index.html might have solutions for what you are looking for.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply Reply Quote 0
        • ?
          Guest last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • J
            JothiMurugeswaran last edited by

            Thanks for the quick response. Can we have useful features like ZoomIn, ZoomOut, Scrolling, Editing etc on this control?

            1 Reply Last reply Reply Quote 0
            • ?
              Guest last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • J
                JothiMurugeswaran last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • A
                  andre last edited by

                  You can scale your scene from the [[doc:QGraphicsView]] using the void scale(qreal, qreal) method.

                  1 Reply Last reply Reply Quote 0
                  • J
                    JothiMurugeswaran last edited by

                    Thanks. I will have a try and come back.

                    1 Reply Last reply Reply Quote 0
                    • J
                      JothiMurugeswaran last edited by

                      Hi Andre, the scale function is working as expected.

                      1 Reply Last reply Reply Quote 0
                      • A
                        andre last edited by

                        OK, thanks for reporting back, and good luck with your project!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post