Now it is working.
My style sheet is
border: 0px solid black;
text-align: top;
padding: 1px;
border-top-left-radius: 7px;
border-bottom-left-radius: 7px;
stop: 0 gray,
stop: 1 gray );
width: 15px;
}
border-top-left-radius: 7px;
border-bottom-left-radius: 7px;
border: 1px solid black;
height:10px;
margin:0.5px
}
QProgressBar {
border: 0px solid black;
text-align: top;
padding: 1px;
border-top-left-radius: 7px;
border-bottom-left-radius: 7px;
background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 gray,
stop: 1 gray );
width: 15px;
}
QProgressBar::chunk {
border-top-left-radius: 7px;
border-bottom-left-radius: 7px;
border: 1px solid black;
height:10px;
margin:0.5px
}
To copy to clipboard, switch view to plain text mode
Now i want to give colour green to red from top to bottom .
How i will set colour to each chunk ?
Bookmarks