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. What is the best way to implement digital graph control (QGLWidget Vs QGraphicsScene Vs ??)
Forum Updated to NodeBB v4.3 + New Features

What is the best way to implement digital graph control (QGLWidget Vs QGraphicsScene Vs ??)

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 2.6k Views 1 Watching
  • 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

    I have used QGraphicsScene with QGraphicsView for creating an digital graph viewer application. In that, i will be using the PainterPath functions for plotting the digital waveform. This is working fine, when the number of lines to draw is few lakhs. But if the number of lines increased, i am facing a serious performance issue, while drawing/scrolling/zooming.

    I tried to create the same kind of application by using QGLWidget (instead of QGraphicsScene), But the opengl logic requires repeated drawing of the images which is viewed in the screen. Is there any logic for plotting the long digital waveforms with zoom/scroll/scale features in opengl (QGLWidget ) environment? Also using OpenGL (QGLWidget ) has significant performance improvement in comparison with QGraphicsScene?

    Any other library (Other than QGraphicsScene/QGLWidget ) is available with qt for plotting the digital waveforms?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vezprog
      wrote on last edited by
      #2

      Qwt is great for plotting interfaces. I have used it A LOT, and have had great success. The fastest plot refresh rate that I have used is a replot every 10 mS.

      http://qwt.sourceforge.net/class_qwt_plot.html

      It is definitely one of the better graphing libraries for Qt

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

        I want to use something which is available as standard in QT Library.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tucnak
          wrote on last edited by
          #4

          [quote author="JothiMurugeswaran" date="1340355033"]I want to use something which is available as standard in QT Library.[/quote]

          1. Qt instead of QT (QuickTime).

          2. It's life, man. Sometimes we need to use 3rd party. Or you can contribute Qt if you want)).

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Asperamanca
            wrote on last edited by
            #5

            Or you can look at the code in QWT, and then write something like it yourself.

            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