Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Getting hypothetical QGraphicsItem.sceneBoundingRect() based on different pos?
Qt 6.12 LTS is out! See what's new in the release blog

Getting hypothetical QGraphicsItem.sceneBoundingRect() based on different pos?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 344 Views 1 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.
  • P Offline
    P Offline
    patrickkidd
    wrote on last edited by
    #1

    I have a set of QGraphicsItems which will animate from their current position to a new position, and want to calculate the post-animation bounding rect for all of the items prior to the animation taking actually place.

    The bounding rects of some items are dependent on the bounding rect of other items. For example some items are nodes on a graph and some are edges. All are top-level items.

    Can anyone suggest a trick how to do this? I suppose I could move all the items to their new positions, calculate the total bounding rect, then move them back all in the same code block, but I am afraid this will cause frame buffer flicker. Maybe that fear is unfounded.

    Thoughts? Thanks!

    https://alaskafamilysystems.com/

    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
    • Unsolved