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

ScrollBar, ScrollView drag crash (iOS)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.9.3
    • Quick: Controls 2
    • None
    • iOS 10.3.3
    • iOS/tvOS/watchOS

    Description

      I have a ScrollView with vertical and horizontal ScrollBars whose active states are bound to each other as in this documentation example: "Binding the Active State of Horizontal and Vertical Scroll Bars" https://doc.qt.io/qt-5/qml-qtquick-controls2-scrollbar.html#binding-the-active-state-of-horizontal-and-vertical-scroll-bars

      Here is the relevant code:

      import QtQuick.Controls 2.2 as QtControls
      
      QtControls.ScrollView {
        QtControls.ScrollBar.horizontal: ScrollBar { id: hbar; active: vbar.active }
        QtControls.ScrollBar.vertical: ScrollBar { id: vbar; active: hbar.active }
      }
      

      In my case, the contents of the ScrollView are not large enough to require ScrollBars, yet when I attempt to drag anyway (slide my finger on the ScrollView), the ScrollBars activate each other recursively (see attached stack) and eventually my app crashes.

      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
            giantguppy Christopher Anderson
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes