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

ScrollView can be flicked when a child has a TapHandler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.5, 6.4.0 Beta4
    • Quick: Controls 2
    • None

    Description

      It should not be possible to flick a ScrollView. It's meant to work like a QScrollArea, which means that you should only be allowed to scroll by dragging on the scrollbars. But this fails if the content item has a TapHandler, e.g:

              ScrollView {
                  anchors.fill: parent
                  Label {
                      text: "ABC"
                      font.pixelSize: 424
                      TapHandler { } // Remove this line to disable flicking
                  }
              }
      

      Being able to flick a ScrollView is in conflict with normal dragging operations that you should normally be able to do inside a ScrollView for a desktop application.

      Attachments

        1. simplest.qml
          0.2 kB
        2. window.qml
          0.3 kB
        For Gerrit Dashboard: QTBUG-106489
        # Subject Branch Project Status CR V

        Activity

          People

            srutledg Shawn Rutledge
            richard Richard Moe Gustavsen
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change