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 to limiti Dial control value?
Forum Updated to NodeBB v4.3 + New Features

How to limiti Dial control value?

Scheduled Pinned Locked Moved Unsolved General and Desktop
limit dial valudial valueslider dialdial with slide
1 Posts 1 Posters 478 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.
  • AlperA Offline
    AlperA Offline
    Alper
    wrote on last edited by Alper
    #1

    Hi
    i created a QML page contains a Dial control and a Slider. values of each of them controls the value of another.

        Dial
        {
            id: dialC
            value: slider.value
        }
    ...
        Slider {
            value: dialC.value
            id:sliderC
            orientation: Qt.Vertical
    }
    

    i have this problem: when i rotate the dial control, after that it reaches to max value, it goes to 0.0 value (because it can rotate unlimited rounds!), slider goes to min value too.
    how i can limit max rounds of dial control to 1 round?
    i mean dial only rotates one rounds and stays in max/min.
    i want it rotates only one round. (for example only values between 0.0 and 1.0)

    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