Qt中progressbar進度的顏色和背景色怎麼設定
- 2022-03-29
QProgressBar {
border: 2px solid grey;
border-radius: 5px;
background-color: #FFFFFF;
}
QProgressBar::chunk {
background-color: #05B8CC;
width: 20px;
}
QProgressBar {
border: 2px solid grey;
border-radius: 5px;
text-align: center;
}
背景色用background-color
再加上border-color
就行了