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. Getting hypothetical QGraphicsItem.sceneBoundingRect() based on different pos?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 204 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 Extensions
    • Unsolved