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. Rotation animation about point other than origin with QTWidget App.
Forum Updated to NodeBB v4.3 + New Features

Rotation animation about point other than origin with QTWidget App.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 490 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.
  • Z Offline
    Z Offline
    Zates
    wrote on last edited by
    #1

    Hi I am trying to have a rotation animation for a pixmap, that rotates the item in the QGraphicsScene about an arbitrary point P, opposed to the origin. I know you can do this very easily in QTQuick, although I am stuck on how to do this in a QT Widget Application.

    Any Ideas?? Thanks!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You can use QTransform to rotate your item. To get "global" coordinates, use mapTo*() methods.

      (Z(:^

      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