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. scene.removeItem() how does it work?
Qt 6.11 is out! See what's new in the release blog

scene.removeItem() how does it work?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 270 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.
  • GofferG Offline
    GofferG Offline
    Goffer
    wrote on last edited by
    #1

    Hello,

    What is QGraphicsScene.removeItem() executing?

    By default, it removes the item from the scene as well as all of its children.
    I would like to re implement that behavior in order to unparent children before removing the item itself. Is that something possible or should I manually manage the parenting before removing the item? Managing parents before removing might be the easiest way but it doesn't seem to be the cleanest / neatest way.

    I feel like there must be something to override in a sublass somewhere.

    Any idea?
    Cheers,

    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