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. Converting QtChart build to QOpenGL type build advice

Converting QtChart build to QOpenGL type build advice

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 707 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.
  • Y Offline
    Y Offline
    Yippiyak
    wrote on last edited by Yippiyak
    #1

    Hello!
    I have been working on a massive project, and I am in need of some more advice. Currently I have about 50 files and 10,000 lines of code that are all built revolving around QtCharts to plot a spectrogram that receives about 1.4 million data points. While this program's analog runs well in C#, the C++ implementation utilizing QtCharts is experience serious performance issues.

    I have tried a multitude of possible solutions, but to no avail, and I have come to the conclusion that the current bottleneck is QtCharts. Unfortunately a significant amount of the project is tied to QtCharts, so the conversion away from QtCharts will require a complete overhaul.

    So, my question for anyone that can help me is; what the best way to go about converting QtChart functions and features to allow for OpenGL to take over?

    I know this is hard to advise without the code in front of you, but the project is locked IP by my company. If anyone can give me general advice on how to get started with this, or if anyone has experience with something even remotely similar to this, that would be greatly appreciated.

    Assume for all intents and purposes that I have read the majority of Qt's documentation on the subject.

    The over view of my project that I can provide is that I currently have a MainWindow with a QObject made with QtCharts that is drawn upon by many other functions to plot lines and coordinates. I am struggling with figuring out how to translate a QtChart QObject into something like a QOpenGLWidget or QSurface. Literally any advice will be greatly appreciated. Many thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you explain how is your project so tied up to QtCharts ?
      That would allow to come up with better ideas on how to improve your situation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Y 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Can you explain how is your project so tied up to QtCharts ?
        That would allow to come up with better ideas on how to improve your situation.

        Y Offline
        Y Offline
        Yippiyak
        wrote on last edited by
        #3

        @SGaist Basically the person who wrote this project before me initially designed the project around QML, but that was too limiting, so they rehauled the project into C++ using QtCharts. We now believe the issue with QtCharts is primarily because it has many options that are private.

        I am looking into using Qwt or QGraphics view to implement my spectrogram, but am unsure which option will provide a better performance view, or even if they are exclusive. Do you happen to have any thoughts regarding that?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Qwt will likely give you the best performance.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

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