Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Problem with Rotation of qml element
QtWS25 Last Chance

Problem with Rotation of qml element

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 371 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.
  • L Offline
    L Offline
    LaurianeLt
    wrote on last edited by
    #1

    Hi,
    I have created a qml element that is a compass, and I want to be able to rotate it in my main window. The problem is that it appears that only the part that was visible at first (before the rotation) rotates.
    Here are some screenshots before and after the rotation so that you can understand better.
    before the rotation
    after the rotation

    My compass qml element name is Compas, so in my "main.qml" I'm writing :
    Compas {
    transform : Rotation {origin.x : width/2 ; origin.y : height/2 ; angle : 40 }
    }

    Thanks for your help !

    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