Scroll bar difference in Qt5 and Qt6
-
Hello,
I see difference in Scroolbar in Qt6 vs QT5.
In QT5 scrollbar is disappearing once we stop operating but in Qt6 scrollbar is always appear.

import QtQuick 2.12
import QtQuick.Controls 2.0ApplicationWindow {
id : appWindow
objectName: "appWindow"
visible: true
width: 640
height: 300
title: "QML Window Example Qt5"
property int i : 0
TableView {
anchors.fill: parent
columnSpacing: 1
rowSpacing: 1
clip: true
ScrollBar.vertical: ScrollBar {
width:20
}
model: tableModel
delegate: Rectangle {
implicitWidth: 100
implicitHeight: 50
Text {
text: display
}
}
}Rectangle {
id: rect
width: 100
height: 200
anchors.bottom : parent.bottom
color: "red"
Text {
text: "Add"
anchors.centerIn: parent
MouseArea {
anchors.fill: parent
onClicked: {
tableModel.append({display: "Item " + appWindow.i})
appWindow.i++
}
}
}
}
}