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. Custom item goes below line series
QtWS25 Last Chance

Custom item goes below line series

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 1 Posters 178 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.
  • M Offline
    M Offline
    MajidKamali
    wrote on last edited by
    #1

    Hi.
    I want to add additional items on top of QChart series. I checked callout example and created a custom graphics item. Even setting zValue of item to a high number (e.g. 1000) does not bring item to top.
    I use QChartView with multiple line series (QVector<QLineSeries*>). What's the problem? how can I bring the items to top?
    Thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MajidKamali
      wrote on last edited by
      #2

      I found out that setUseOpenGL(true) on QLineSeries causes the problem.
      What can I do now? :-(

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MajidKamali
        wrote on last edited by
        #3

        I found the cause, but I think there is not solution to my problem.
        According to docs (QAbstractSeries):

        When a chart contains any series that are drawn with OpenGL, a transparent QOpenGLWidget is created on top of the chart plot area. The accelerated series are not drawn on the underlying QGraphicsView, but are instead drawn on the created QOpenGLWidget.

        So there is no way to draw something on top of it :|

        But I have another question, can I update plot manually? adding point to series updates chart automatically. I want to update it at specific intervals (constant FPS)

        Setting viewportUpdateMode to NoViewportUpdate has no effect

        Thanks

        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