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. using setScale function relative to a custom point
Forum Updated to NodeBB v4.3 + New Features

using setScale function relative to a custom point

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

    I have an item and I am zooming to some specific regions of this item. Zoom In and Zoom out is achieved by setScale function().

    the documentation says:

    The item is scaled around its transform origin point, which by default is (0, 0). You can select a different transformation origin by calling setTransformOriginPoint().
    

    So I don't want to zoom always relative to (0,0) point. however using setTransformOriginPoint() function changes the coordinates of elements belonging to my main item.

    How can I zoom to a custom point without changing element coordinates inside ?

    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