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

Internal Flickable known to ScrollBar is set at too late timing

XMLWordPrintable

      The attached sample customizes ScrollBar for a ScrollView. The result is weird that both custom ScrollBar and default ScrollBar coexist.

      Reason:
      Internal Flickable is not yet available at the time of neither default nor custom ScollBar getting set. Related codes:
      https://github.com/qt/qtdeclarative/blob/dev/src/quicktemplates/qquickscrollbar.cpp#L1275
      https://github.com/qt/qtdeclarative/blob/dev/src/quicktemplates/qquickscrollbar.cpp#L1224
      The cleanup codes are never executed for setting a new ScrollBar.

      Workaround:
      Set custom ScrollBar at a later time. For example, as in the sample, in Main.qml when ScrollView is Completed.

      So either we change this behavior or warn user in documentation.

        1. QTBUG141229.7z
          1 kB
          Luqiao Chen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes