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. [SOLVED]QProgressBar custom stylesheet

[SOLVED]QProgressBar custom stylesheet

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 2.5k 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.
  • M Offline
    M Offline
    maximus
    wrote on 23 Oct 2013, 18:51 last edited by
    #1

    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


    Free Indoor Cycling Software - https://maximumtrainer.com

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maximus
      wrote on 23 Oct 2013, 18:57 last edited by
      #2

      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)
      }@


      Free Indoor Cycling Software - https://maximumtrainer.com

      1 Reply Last reply
      0

      1/2

      23 Oct 2013, 18:51

      • Login

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