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. Quick Controls 2 Slider "update value while dragging" possible?
QtWS25 Last Chance

Quick Controls 2 Slider "update value while dragging" possible?

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

    How does one make a Quick Controls 2 Slider update its current value continuously while
    the handle is moved.

    In Quick Controls, a Slider had the updateValueWhileDragging : bool property the default
    value of which was true.

    In Quick Controls 2, there is no equivalent property.

    1 Reply Last reply
    0
    • jpnurmiJ jpnurmi

      You can use Slider::position to get continuous updates. QtQuick Controls 2.1 in Qt 5.8 introduces Slider::valueAt(pos) to help converting a normalized position ([0.0..1.0]) to a value if you have a "complex" range.

      E Offline
      E Offline
      embedded
      wrote on last edited by embedded
      #3

      @jpnurmi Thank you! That works wonderfully.

      1 Reply Last reply
      0
      • jpnurmiJ Offline
        jpnurmiJ Offline
        jpnurmi
        wrote on last edited by
        #2

        You can use Slider::position to get continuous updates. QtQuick Controls 2.1 in Qt 5.8 introduces Slider::valueAt(pos) to help converting a normalized position ([0.0..1.0]) to a value if you have a "complex" range.

        E 1 Reply Last reply
        1
        • jpnurmiJ jpnurmi

          You can use Slider::position to get continuous updates. QtQuick Controls 2.1 in Qt 5.8 introduces Slider::valueAt(pos) to help converting a normalized position ([0.0..1.0]) to a value if you have a "complex" range.

          E Offline
          E Offline
          embedded
          wrote on last edited by embedded
          #3

          @jpnurmi Thank you! That works wonderfully.

          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