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. Slider in QML
Forum Updated to NodeBB v4.3 + New Features

Slider in QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 1.3k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    Sushma_MP
    wrote on last edited by
    #1

    Hi everyone,

    Can some one help me to implement slider movement in QML

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mostefa
      wrote on last edited by
      #2

      Hi @Sushma_MP

      Have a look at

      http://doc.qt.io/qt-5/qml-qtquick-controls-slider.html#details

      You can have something like this, for example:

      Slider {
          id: firstSlider
          maximumValue: 5.0
          stepSize: 1.0
      }
      
      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sushma_MP
        wrote on last edited by
        #3

        this is to create the slider but i need to implement this slider in music player , requirement is as soon as the song played the slider has to move and maximumValue should be the length of the selected song..

        M 1 Reply Last reply
        0
        • S Sushma_MP

          this is to create the slider but i need to implement this slider in music player , requirement is as soon as the song played the slider has to move and maximumValue should be the length of the selected song..

          M Offline
          M Offline
          mostefa
          wrote on last edited by mostefa
          #4

          @Sushma_MP said in Slider in QML:

          this is to create the slider but i need to implement this slider in music player , requirement is as soon as the song played the slider has to move and maximumValue should be the length of the selected song..

          What about binding?

          http://doc.qt.io/qt-5/qml-qtqml-binding.html#details

          Slider {
              id: slider
              Binding {
                  target: slider
                  property: "value"
                  value: yourPlayer.value//or something like this
              }
          }
          
          1 Reply Last reply
          1
          • S Offline
            S Offline
            Sushma_MP
            wrote on last edited by
            #5

            Thank you let me try out this...

            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