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 change maximum value of gauge depending on value

how to change maximum value of gauge depending on value

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qmlgauge qml
2 Posts 2 Posters 488 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.
  • M Offline
    M Offline
    milan
    wrote on 1 Oct 2018, 19:34 last edited by
    #1

    Hello, I would like to change the maximum value of gague depending upon the value. Can anybody help me how can i achieve this?

    1 Reply Last reply
    0
    • O Offline
      O Offline
      ODБOï
      wrote on 2 Oct 2018, 09:58 last edited by
      #2

      hi,

      Gauge{
      maximumValue:100
      minimumValue:0
              onValueChanged: {
                  if(value > 80){
                      maximumValue=200
                  }
              }
      
      1 Reply Last reply
      1

      1/2

      1 Oct 2018, 19:34

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved