Change the color of a QProgressBar

后端 未结 3 1638
情书的邮戳
情书的邮戳 2021-02-07 10:38

I am running ubuntu 11.04. This is what my progress bars look like:

\"progress

I am showing the progr

3条回答
  •  旧时难觅i
    2021-02-07 11:16

    Using the "Highlight" color role does the trick in my case (using Plastique style).

    QPalette p = palette();
    p.setColor(QPalette::Highlight, Qt::green);
    setPalette(p);
    

提交回复
热议问题