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. How to get Qml Dial to have a full 360 degrees range?
Forum Updated to NodeBB v4.3 + New Features

How to get Qml Dial to have a full 360 degrees range?

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

    So I am using Dial in my code, however the Dial only "rotates" from -140 to 140 which is less than 360 degrees. How can I achieve a full range of motion, allow the user to get full range of motion?

    My simple code:
    Dial{ id: control; to: 1; from: 0; // however 1.0 is not 360 }

    1 Reply Last reply
    0
    • KillerSmathK Offline
      KillerSmathK Offline
      KillerSmath
      wrote on last edited by
      #2

      @daljit97
      Except i'm wrong, the Dial Component haven't support by default to change the maximum or maximum angle of rotation but you can implement a component by yourself with this feature.

      • Create a Item with background image
      • Insert a neadle image with rotation transform
      • Implement an animation in the neadle when the rotation angle number changes.

      @Computer Science Student - Brazil
      Web Developer and Researcher
      “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

      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