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. Treatment of rotated items in QGraphicsLayout
Forum Updated to NodeBB v4.3 + New Features

Treatment of rotated items in QGraphicsLayout

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 679 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

    I am trying to create an editor based on GraphicsView, where the user is able to do two things (among others):

    1. rotate items
    2. put items into layouts

    Initial tests show that this does not look to be a happy combination. When I simply call "rotate" on the item, it will be placed inside the layout like it was unrotated, and is THEN rotated for display.

    Now, if I rotate a rectangle by 45°, it's resulting bounding rectangle will be larger, and I had hoped the layout would take that into account.

    Am I missing something? Is there a way to make the layout respect item rotation (other than reimplementing geometry(), setGeometry(), minimumSize, ... for every single item)?

    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