Unsolved ScrollView "transientScrollBars = true" not working correctly!
-
Hi guys,
I need some help about ScrollView usage.
-
I defined a ListView and put listiew into a ScrollView. I set a custom style of my scrollview. I set "transientScrollBars" to "true" for only appearing when I scroll both scrollbars. But, when loading list items and the height is not fit the screen (means no need to vertical scrollbar) the horizontal scrollbar at first loading. But when I scroll my mouse wheel, it doesn't show horizontal scrollbar.
-
If height is larger than screen height and needed to vertical scroll bar is shown, then all the things work correctly. But for this second case, the horizontal scrollbar doesn't swipe on touch screen at this time.
The "transientScrollBars" property of scrollview seems that doesnt work correctly when listview included in it.
My code snippet is like below:
ScrollView{ id: reportsScrollView width: xlinkReport.width anchors.bottom: parent.bottom anchors.top: header.bottom style: ScrollViewStyle { transientScrollBars: true handle: Rectangle { implicitWidth: 10 implicitHeight: 10 color: Global.COLORS.greyDark radius: dp(10) } scrollBarBackground: Rectangle { implicitWidth: 10 implicitHeight: 10 color: Global.COLORS.greyGraph } decrementControl: Rectangle { implicitWidth: 0 } incrementControl: Rectangle { implicitWidth: 0 } minimumHandleLength: 10 } ListView { id: reportsList width: xlinkReport.width contentWidth: getListWidth() model: reportsModel delegate: dynamicReportsDelegate header: reportsHeader headerPositioning: ListView.OverlayHeader } }
My environment is :
Win 7 x64 and Qt 5.6
What is the problem with that?
Can there a bug about thie property of Scroll view?
Thanks in advance.
Kerem
-
-
@kerem said in ScrollView "transientScrollBars = true" not working correctly!:
Can there a bug about thie property of Scroll view?
Check the bug tracker to see if it's a known issue, https://bugreports.qt.io.