<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Scroll bar difference in Qt5 and Qt6]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I see difference in Scroolbar in Qt6 vs QT5.<br />
In QT5 scrollbar is disappearing once we stop operating but in Qt6 scrollbar is always appear.<br />
<img src="https://ddgobkiprc33d.cloudfront.net/00333192-a690-476b-ba8f-8de215be5b4e.png" alt="dc550da9-c11d-49a9-a425-32b9b17c8025-image.png" class=" img-fluid img-markdown" /><br />
import QtQuick 2.12<br />
import QtQuick.Controls 2.0</p>
<p dir="auto">ApplicationWindow {<br />
id : appWindow<br />
objectName: "appWindow"<br />
visible: true<br />
width: 640<br />
height: 300<br />
title: "QML Window Example Qt5"<br />
property int i : 0<br />
TableView {<br />
anchors.fill: parent<br />
columnSpacing: 1<br />
rowSpacing: 1<br />
clip: true<br />
ScrollBar.vertical: ScrollBar {<br />
width:20<br />
}<br />
model: tableModel<br />
delegate: Rectangle {<br />
implicitWidth: 100<br />
implicitHeight: 50<br />
Text {<br />
text: display<br />
}<br />
}<br />
}</p>
<p dir="auto">Rectangle {<br />
id: rect<br />
width: 100<br />
height: 200<br />
anchors.bottom : parent.bottom<br />
color: "red"<br />
Text {<br />
text: "Add"<br />
anchors.centerIn: parent<br />
MouseArea {<br />
anchors.fill: parent<br />
onClicked: {<br />
tableModel.append({display: "Item " + appWindow.i})<br />
appWindow.i++<br />
}<br />
}<br />
}<br />
}<br />
}</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/64d10fa4-7d0c-42fb-8c94-e8d03f086cde.png" alt="03f91770-a36f-4d36-8ae3-811335b9ee25-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/topic/158503/scroll-bar-difference-in-qt5-and-qt6</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 12:19:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/158503.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Sep 2024 07:23:42 GMT</pubDate><ttl>60</ttl></channel></rss>