可以推荐几个Qt下的progressBar好看的样式表吗?
时间: 2023-03-21 13:01:37 浏览: 79
当然可以,下面是几个我个人认为比较好看的 Qt progressBar 样式表:
1. Material Design 风格
```
QProgressBar {
border: 2px solid grey;
border-radius: 5px;
text-align: center;
font: bold 14px;
}
QProgressBar::chunk {
background-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 #64B5F6, stop:1 #2196F3);
width: 10px;
margin: 0.5px;
}
```
2. Candy 风格
```
QProgressBar {
border: 2px solid grey;
border-radius: 5px;
text-align: center;
font: bold 14px;
}
QProgressBar::chunk {
background-color: #FFA07A;
width: 10px;
margin: 0.5px;
}
```
3. Metro 风格
```
QProgressBar {
border: 2px solid grey;
border-radius: 5px;
text-align: center;
font: bold 14px;
}
QProgressBar::chunk {
background-color: #1BA1E2;
width: 10px;
margin: 0.5px;
}
```
4. Flat 风格
```
QProgressBar {
border: 2px solid grey;
border-radius: 5px;
text-align: center;
font: bold 14px;
}
QProgressBar::chunk {
background-color: #4CAF50;
width: 10px;
margin: 0.5px;
}
```
你可以根据自己的喜好调整这些样式表的颜色和大小等属性。