前言:
基于QML TableView(Qt 5.1)版本,内部滑动条样式修改
style: TableViewStyle {
frame: Rectangle { color: "transparent" } //边框
incrementControl: Rectangle { color: "transparent" } //滑块
decrementControl: Rectangle { color: "transparent" } //滑块
handle: Rectangle { //中间的滑动块
implicitWidth: 6
Rectangle {
radius: 12
color: "#d1d3d5"
anchors.fill: parent
}
}
//背景
scrollBarBackground:
Rectangle {
color: "transparent"
implicitWidth: 6
}
}
演示: