Qt中progressbar進度的顏色和背景色怎麼設定

  • 作者:由 匿名使用者 發表于 攝影
  • 2022-03-29

Qt中progressbar進度的顏色和背景色怎麼設定 彩霞飛舞 1級 2020-05-18 回答

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;

}

搜狗問問

Qt中progressbar進度的顏色和背景色怎麼設定 匿名使用者 1級 2013-06-18 回答

背景色用background-color

再加上border-color

就行了

Top