Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[SOLVED]QProgressBar custom stylesheet



  • Hi,

    I would like to change the color of the text inside the QProgressBar, the text that usually show the % completed.
    However, I would show the time elapsed instead of %
    I know how to show my text, but didnt't find where to change the font color of the text
    Thank you

    What I want :
    https://www.dropbox.com/s/5l09s0qnqpur53o/futureProgressBar.png



  • nevermind, the attribute to change in the stylesheet is "color" I was changing background-color, it's fixed

    @ QProgressBar#progressBar_workout, #progressBar_interval {
    background-color: rgb(75, 75, 75);
    border: 2px solid grey;
    border-radius: 5px;
    text-align: center;
    color: rgb(255,255,255)
    }@


Log in to reply