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

ScrollView doesn't remove ScrollBar after settinging the new one

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.2, 5.15.1, 5.15.2
    • Fix Version/s: None
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Platform/s:
      Linux/X11, Windows

      Description

      After setting a custom scrollbar in ScrollView, the original scrollbar remains visible

       

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      
      Item {
          id: root
      
          ScrollView {
              anchors.fill: parent
      
              ScrollBar.vertical: ScrollBar {
                  height: parent.height
                  policy: ScrollBar.AlwaysOn
              }
          }
      }
      
      

       

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            ghorev Grigoriy Khorev
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes