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 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
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on 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 last edited by
        #3

        Thanks for the reply @mrjj . will try this.

        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