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. How can i filter rotation of an item(rotate the item and not the text inside)?

How can i filter rotation of an item(rotate the item and not the text inside)?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.4k 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.
  • S Offline
    S Offline
    ssow
    wrote on last edited by
    #1

    Hello,
    i want rotate the item but not the text inside the item. Can i choose which elements to rotate with the function QGraphicsItem::setRotation()?

    Thanks

    1 Reply Last reply
    0
    • D Offline
      D Offline
      deimos
      wrote on last edited by
      #2

      you can anti-rotate the text

      1 Reply Last reply
      0
      • S Offline
        S Offline
        ssow
        wrote on last edited by
        #3

        thanks, but how?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          Rotate it oppositely to the parent rotation perhaps?

          You can also look at the flags that you can set using QGraphicsItem::setFlags. You might be especially interested in experimenting with the QGraphicsItem::ItemIgnoresTransformations flag.

          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