1.自定义进度条的样式
1.1代码展示
import QtQuick 2.9
import QtQuick.Window 2.2
import QtQuick.Controls 2.1Window {visible: truewidth: 640height: 480title: qsTr("Hello World")ProgressBar {id: myProgressvalue: 0.5padding: 2anchors.centerIn: parentbackground: Rectangle {id: myBackgroundimplicitWidth: 200implicitHeight: 20color: "#e6e6e6"border.color: "#1a95f3"radius: 3}contentItem: Item {implicitWidth: 200implicitHeight: 17Rectangle {width: 50height: 17radius: 2