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 of qml image about certain point

Rotation of qml image about certain point

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 962 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.
  • A Offline
    A Offline
    akn10red
    wrote on last edited by
    #1

    Hi all,
    I am new to Qt and trying to rotate a qml image about certain axis... the image is basically a speed-meter knob (image size 60*110). I am continuously taking value from serial port (within cpp) and trying to rotate the knob (from a qml) at an angle;
    @angle = getserialvalue() * 270/255;@
    then I use qml object "setProperty" method from my cpp file to rotate the knob. But I need the image to be rotated about point (30,15). Simple rotation ends up in dislocation of knob from centre of the speed-meter...
    Any kind of help would be appreciated
    Thanks in advance

    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