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. How to add a chartview item to a scene such that it appears under the already existing items in the scene ?
Forum Update on Monday, May 27th 2025

How to add a chartview item to a scene such that it appears under the already existing items in the scene ?

Scheduled Pinned Locked Moved Solved General and Desktop
graphicsviewgraphicsscenewidget applicat
3 Posts 2 Posters 396 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.
  • S Offline
    S Offline
    sachinrd
    wrote on 23 May 2021, 14:31 last edited by
    #1

    Hello,
    I am a newbie to qt and I have graphics view and a corresponding scene. The scene already contains QGraphicsRectItems. Now i want to add a chartview to the scene. when i add it it is added on top of existing rect items. How to add it to the scene such that the rect items appear on top of the chartview.
    Thanks for any help inadvance .

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 23 May 2021, 16:17 last edited by
      #2

      Hi
      You can change the z order
      https://doc.qt.io/qt-5/qgraphicsitem.html#setZValue
      or use
      https://doc.qt.io/qt-5/qgraphicsitem.html#stackBefore

      1 Reply Last reply
      1
      • S Offline
        S Offline
        sachinrd
        wrote on 26 May 2021, 12:17 last edited by
        #3

        Thanks for the reply @mrjj . will try this.

        1 Reply Last reply
        0

        1/3

        23 May 2021, 14:31

        • Login

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