QT中QProgressBar问题
QProgressBar{
border: none;
color: white;
text-align: center;
background: rgb(68, 69, 73);
}
QProgressBar::chunk {
border: none;
background: rgb(0, 0, 230);
}
上面这样写失败,设置不了样式。
QProgressBar::chunk {
border: none;
background: rgb(0, 0, 230);
}
QProgressBar{
border: none;
color: white;
text-align: center;
background: rgb(68, 69, 73);
}
两个调个位置,卧槽,成功了!!
还没找到具体是什么原因。