Scroll Bar Exampleに使用したい。
この例を個人的なアプリケーションに使用しようとしています。次のような私のmain.qmlファイル:
Flickable {
id: view
anchors.fill: parent
contentWidth: bobol.width
contentHeight: bobol.height
Column {
id : bobol
Rectangle {
width: 400
height: 100
color: 'red'
MouseArea {
id: sideButtonMouseArea
anchors.fill: parent
hoverEnabled: true
onClicked: {
parent.color = '#4872E8'
}}}
Rectangle {
width: 200
height: 1000
}
}
states: State {
name: "ShowBars"
when: view.movingVertically
PropertyChanges { target: verticalScrollBar; opacity: 1 }}
transitions: Transition {
NumberAnimation { properties: "opacity"; duration: 400 }}}
ScrollBar {
id: verticalScrollBar
width: 12; height: view.height-12
anchors.right: view.right
opacity: 10
orientation: Qt.Vertical
position: view.visibleArea.yPosition
pageSize: view.visibleArea.heightRatio}
この例で水平スクロールを修正したいですか? どうすればこれを修正できますか?