Slider跟其他的控件一样,可以通过SliderStyle来设置滑块的风格。
import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
Rectangle{
width: 320;
height: 240;
color: "lightgray";
Row{
anchors.fill: parent;
spacing: 20;
Column{
width: 200;
spacing: 16;
Text{
id:sliderStat;
color: "blue";
text:"current - 0.1";
}
Slider{
width: 200;
height: 30;
stepSize: 0.01;
value: