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. Accessing Stacked GraphicsItems
Qt 6.11 is out! See what's new in the release blog

Accessing Stacked GraphicsItems

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 219 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.
  • B Offline
    B Offline
    BrianE
    wrote on last edited by
    #1

    My own derived GraphicsView/GraphicsItem system. But sometimes one item 'hides' (actually it's transparent so I can see) an item below in a stack. Clicking on item only gives the one at the top. How to access the one below? There surely is a tried and tested method. Presumably it involves the view's MousePressEvent and items(QPoint()) but I'm stuck on a simple method.

    Brian

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Asperamanca
      wrote on last edited by
      #2

      QGraphicsScene::items or QGraphicsView::items (the overloads taking a QPointF), perhaps?

      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