Results 1 to 1 of 1

Thread: Customizing indeterminate QProgressBar

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Posts
    61
    Thanks
    2
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Customizing indeterminate QProgressBar

    Hi Guys,

    I've seen in the documentation that indeterminate QProgressBar can be customized using Style Sheets, by using the :indeterminate pseudo state, but I had no success using it.

    Changing the color of the ::chunk sub-control for a normal QProgressBar:
    Qt Code:
    1. QProgressBar::chunk{
    2. background-color: red;
    3. }
    To copy to clipboard, switch view to plain text mode 

    And then I tried :
    Qt Code:
    1. QProgressBar::chunk:indeterminate{
    2. background-color: blue;
    3. }
    To copy to clipboard, switch view to plain text mode 
    but this was with no success.
    I also tried:
    Qt Code:
    1. QProgressBar:indeterminate::chunk{
    2. background-color: blue;
    3. }
    To copy to clipboard, switch view to plain text mode 
    , but again, no success.

    Has any of you managed to successfully use the :indeterminate state?

    Thanks and regards,
    Wladek

    P.S.: take a look at the attached screen shot (the upper progress bar is an indeterminate progress bar)
    Attached Images Attached Images
    One second is long, everything longer than two seconds is definitely too long.

Similar Threads

  1. Customizing QFileDialog
    By ScabrusMantra in forum Qt Programming
    Replies: 8
    Last Post: 22nd July 2011, 12:03
  2. customizing QDockWidget
    By walden02 in forum Qt Programming
    Replies: 1
    Last Post: 19th February 2010, 11:14
  3. Customizing QToolBox:tab
    By ialnik in forum Qt Programming
    Replies: 5
    Last Post: 5th February 2010, 17:12
  4. customizing QScrollbar
    By MarkoSan in forum Qt Programming
    Replies: 7
    Last Post: 15th October 2009, 18:51
  5. Customizing Sorting
    By delalaym in forum Qt Programming
    Replies: 2
    Last Post: 12th March 2009, 00:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.