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

QML SwipeView steals Slider handle grab

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.1, 6.4.2
    • None
    • Built on macOS.
    • Android, iOS/tvOS/watchOS

    Description

      Hello, I'd like to report an issue with Slider when using SwipeView.

       

      If I have a Slider within SwipeView children, Slider's handle can not be dragged

      The slider's handle drag movement is propagated to the underlying SwipeView which as a result changes a page. However, I'd like to move the handle instead, not change a page.

       

      I can reproduce it on Android and iOS. I could not reproduce it on macOS.

       

      You can reproduce it with the following code:

      // import ..
      
      ApplicationWindow {
        id: window
      
        width:  200
        height: 400
        visibility: "FullScreen"
      
        Item {
          width: window.width
          height: window.height
      
      
          SwipeView {
            id: view
      
            width: window.width
            height: window.height
      
            Page {
      
              Column {
                width: parent.width
                height: 100
      
                Slider {
                  width: parent.width
                  height: 50
                }
      
                Slider {
                  width: parent.width
                  height: 50
                }
              }
            }
      
            Page {
              background: Rectangle { color: "red" }
      
              Column {
                width: parent.width
                height: 100
      
                Slider {
                  width: parent.width
                  height: 50
                }
      
                Slider {
                  width: parent.width
                  height: 50
                }
              }
            }
          }
        }
      }
      

      I attached a video showcasing this issue.

      Attachments

        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
            tomasmizera Tomas Mizera
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes