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. Correct boundingRect() for items ignoring transformations?
Forum Updated to NodeBB v4.3 + New Features

Correct boundingRect() for items ignoring transformations?

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

    Qt docs on QGraphicsItem::boundingRect() state:
    "all painting must be restricted to inside an item's bounding rect"

    How do I do that when the item has the ItemIgnoresTransformations flag set?

    The boundingRect is given in item coordinates. The requires paint area for an item ignoring transformations will depend on the zoom level, and might be different for every view connected to the scene.

    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