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. Arbitrary transformation anchor in QGraphicsView
Forum Updated to NodeBB v4.3 + New Features

Arbitrary transformation anchor in QGraphicsView

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 827 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
    Postedman
    wrote on last edited by
    #1

    Hello,
    The task is that I have some GraphicsView and I need to scale and rotate it not around the center of the View or Scene or the mouse pointer, but around arbitrary point.
    For example, I have huge scene. With LeftButton click I place an anchor for transformation (a pin) to mouseEvent.scenePos(). And then, holding right mouse button and moving mouse I scale and rotate scene around that anchor, meaning pin staying still on the screen.
    That means I cant use setTransformationAnchor because it can acept only transformationAnchor enumeration.
    So how can I set transformation point?

    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