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 it possible to render widgets on top of OpenGL-enabled QLineSeries?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to render widgets on top of OpenGL-enabled QLineSeries?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 396 Views 2 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.
  • I Offline
    I Offline
    InverseTransform
    wrote on 25 Oct 2018, 08:47 last edited by InverseTransform
    #1

    If I use QLineSeries with setUseOpenGL(true) in a QChart, the series will always be displayed on top of everything else, and setting Z value won't have any effect. According to documentation, that is because:

    "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."

    What this means is that if I e.g. add some widgets or QGraphicsItems to the scene:

    chartView->scene()->addWidget(someQLabel);
    chartView->scene()->addEllipse(...);
    

    they will allways be drawn beneath the series, which is really annoying because you cannot have e.g. text label shown on top of the series.

    Is there any way at all to have OpenGL-enabled series with other items drawn on top of it, i.e. to control the Z order of the items?

    1 Reply Last reply
    1

    1/1

    25 Oct 2018, 08:47

    • Login

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