Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Looking for Slider with value update text

    QML and Qt Quick
    2
    4
    117
    Loading More Posts
    • 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.
    • R
      RobM last edited by

      Hey guys, I am looking for a slider or something similar that allows the user to see their current value e.g. if they move the slider from 0 to 50% and the range is 0 to 100% it will update a display value that tells them their current value. Does QT already have a Type with that kind of built in functionality? I do not believe the normal Slider has that functionality built in.

      ODБOï 1 Reply Last reply Reply Quote 0
      • ODБOï
        ODБOï @RobM last edited by ODБOï

        Hi
        @RobM said in Looking for Slider with value update text:

        Does QT already have a Type with that kind of built in functionality?

        No, but you can easily customize QML Slider and add something to display the value

        edit I fixed the link

        R 1 Reply Last reply Reply Quote 1
        • R
          RobM @ODБOï last edited by

          @LeLev Yeah I went that route. I was hoping there was some sort of more advanced slider out there already. I do have one more quesiton. What is the type of value ? For instance, in the back-end, can I assume the type or will I need to cast it?

          ODБOï 1 Reply Last reply Reply Quote 0
          • ODБOï
            ODБOï @RobM last edited by

            @RobM
            https://doc.qt.io/qt-5/qtqml-cppintegration-data.html
            https://doc.qt.io/qt-5/qml-qtquick-controls2-slider.html#value-prop

            1 Reply Last reply Reply Quote 0
            • First post
              Last post