Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is there any digital Waveform viewer control available in QT?

Is there any digital Waveform viewer control available in QT?

Scheduled Pinned Locked Moved General and Desktop
10 Posts 3 Posters 7.5k Views
  • 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 Offline
    J Offline
    JothiMurugeswaran
    wrote on last edited by
    #1

    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
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      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
      0
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #3

        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
        0
        • J Offline
          J Offline
          JothiMurugeswaran
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • ? This user is from outside of this forum
            ? This user is from outside of this forum
            Guest
            wrote on last edited by
            #5

            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
            0
            • J Offline
              J Offline
              JothiMurugeswaran
              wrote on last edited by
              #6

              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
              0
              • A Offline
                A Offline
                andre
                wrote on last edited by
                #7

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

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  JothiMurugeswaran
                  wrote on last edited by
                  #8

                  Thanks. I will have a try and come back.

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    JothiMurugeswaran
                    wrote on last edited by
                    #9

                    Hi Andre, the scale function is working as expected.

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andre
                      wrote on last edited by
                      #10

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

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved