1. ScrollBar演示 2. 对外属性 继承于Rectangle; target属性继承于Flickable(默认值父控件); orientation设置控件水平还是垂直方向(默认值垂直方向). ScrollBar.qml import QtQuick 2.0 Rectangle { id: root property Flickable target: parent // parent: Flickable property int orientation