×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jan 2011
    Posts
    100

    Setting color to QProgressBar

    Hi I want to set different color to QProgressBar than blue.
    I tired this:
    QPalette q=qbar:alette();
    q.setColor(QPalette::HighLight,Qt::red);
    qbar.setPalette(q);

    Also i tried to change its backgrounf,selection area via stylesheet but nothing is working..
    Pls let me know , if i am missing something.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Setting color to QProgressBar

    if you StyleSheet looks something similar to this http://labs.qt.nokia.com/2007/06/12/...nd-qscrollbar/ . i just tried it it works with out problem

  3. #3
    Regular Contributor
    Join Date
    Jan 2011
    Posts
    100

    Re: Setting color to QProgressBar

    Thanks its working

Similar Threads

  1. Setting Item List text color
    By em75dl07 in forum Symbian User Interface
    Replies: 2
    Last Post: 2010-04-16, 00:24
  2. Replies: 1
    Last Post: 2010-03-22, 07:54
  3. setting background color of container
    By kariwalasameer in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-11-03, 12:25
  4. Setting background color of a listbox view.
    By jaigaur in forum Symbian User Interface
    Replies: 9
    Last Post: 2009-06-19, 10:27
  5. Setting color in rows?
    By drkilljoy in forum Browsing and Mark-ups
    Replies: 3
    Last Post: 2008-08-20, 07:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •