Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Yes... it's that question again.. Progress bar colours
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 192 Views
  • 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 Offline
    S Offline
    Stevolution
    wrote on last edited by
    #1

    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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved