Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80591

Slider : handleHovered = true but not hovered will not update slider data

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.13.0
    • Quick: Controls 1
    • None
    • OS:Windows 10 Home 64bit
      System Configuration:
      [HW Information]
      CPU:AMD Eng Sampleļ¼š100-000000084-40-37/21-y
      SO-DIMM1:Micron 4G
      SO-DIMM2:Micron 4G
      HDD:Toshiba 3T
    • Windows

    Description

      Double click message will not into the
      1. -> onExited : handleHovered = false
      2. -> onPressed will into if (handleHovered) {...} even we release the handle
      hovered.
      3. -> Then will cause not updateHandlePosition( ) so, this process will not
      post this message to Slider :: onSliderValueChanged() {..}
      4. -> So click will not change the UI

      [Fix Solution]
      6. After change the target add below code (line "b"), it can get
      positive result

      File %QT path%:\Qt\Tools\QtCreator\bin\qml\QtQuick\Controls\Slider.qml

      onReleased: {
      updateHandlePosition(mouse, Settings.hasTouchScreen)
      // If we don't update while dragging, this is the only
      // moment that the range is updated.
      if (!slider.updateValueWhileDragging)
      range.position = __horizontal ? fakeHandle.x : fakeHandle.y;
      clickOffset = 0
      preventStealing = false
      a. // should release the hovered in all case.
      b. handleHovered = false
      }

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              jingwen Jingwen Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes