Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Yes... it's that question again.. Progress bar colours

    General and Desktop
    1
    1
    55
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Stevolution last edited by

      Hello
      Only started using QT Designer today, and I am basically learning it through trial and error.
      Progress is kinda OK.

      But, I have Googled the world for a solution to changing the colour of a QprogressBar.

      I can edit the items stylesheet and add: QProgressBar::chunk { background-color: rgb(255, 209, 42);}
      This sets the portion of the progress bar to the yellow colour I need.

      But, how the heck do you change the remaining portion of the progress bar to black? My background it black and I don't want to see the unused progress bar.

      I did read that changing the style sheet of a ProgressBar can break it?

      Any advice warmly received by today's newbie.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post