Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Slider Style Problem
Qt 6.12 LTS is out! See what's new in the release blog

Slider Style Problem

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 3 Posters 2.6k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    If a SliderStyle is used AND a negative minimumValue is used, the slider's handle goes off its groove. Like this...
    "Screenshot":http://jawad.zenfolio.com/p887006741/e7e048184

    This happens even if the SliderStyle is empty (so probably not something I did wrong):

    @ Slider {
    id: sld
    minimumValue: -1.0
    maximumValue: 1.0

            style:  SliderStyle {}
    }
    

    @

    Is there a solution for this ?
    Am I doing something wrong?

    Thanks for your help !

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jsprenkle
      wrote on last edited by
      #2

      That looks like a bug. You might change the slider range to 0 - 2 and adjust the values before reading/writing it.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        jsprenkle: Thanks for your reply.

        Can anyone from Digia/Qt also confirm that its a bug.
        If so - when can a solution be expected?

        Thanks

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jsprenkle
          wrote on last edited by
          #4

          first result when searching google for "qt bug negative slider"

          https://bugreports.qt-project.org/browse/QTBUG-32506

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Actually negative values work correctly. Only when a style is applied to the the slider the behavior I reported is noticed.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              Jens
              wrote on last edited by
              #6

              I can confirm that this looks like a valid bug. This is certainly a styling issue as it does not affect desktop styled controls.

              Can you verify that it was not already fixed in 5.1.1 and if so please report it through the bug tracker.

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #7

                Downloaded 5.1.1 and this problem seems to have been resolved in that update.

                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
                • Unsolved