Results 1 to 3 of 3

Thread: QProgressBar: Start from mid.

  1. #1
    Join Date
    Jul 2010
    Posts
    38
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QProgressBar: Start from mid.

    Hi All,

    I have a QProgressBar with the range of -50 to +50,

    I want to set the value as 10 and the chunk should start from the 0 (from the mid).

    But chunk is starting from the minimum value (-50).

    How can I start the orientation from mid?

    Thanks...
    Last edited by pastispast; 11th August 2010 at 10:52. Reason: Some point was missing

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QProgressBar: Start from mid.

    You can't because this it not for what a progress bar is for. I am sorry, but you have to subclass and do the painting yourself.

  3. The following user says thank you to Lykurg for this useful post:

    pastispast (12th August 2010)

  4. #3
    Join Date
    Jul 2010
    Posts
    38
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QProgressBar: Start from mid.

    Thanks, Lykurg.

    Actually I was using progress bar in custom button. and I have more things with it.

    I have solved this one by taking 2 progress bar and using the "setInvertedAppearance" property.

    Once again thanks for your response...
    Last edited by pastispast; 12th August 2010 at 11:28.

Similar Threads

  1. setBar ( QProgressBar * bar )
    By hvw59601 in forum Qt Programming
    Replies: 7
    Last Post: 29th July 2010, 00:09
  2. Using QProgressBar
    By gutiory in forum Qt Programming
    Replies: 6
    Last Post: 5th May 2010, 06:59
  3. QStatusBar and QProgressBar
    By croscato in forum Qt Programming
    Replies: 5
    Last Post: 30th July 2009, 18:16
  4. QProgressBar + Mac OS X
    By THRESHE in forum Qt Programming
    Replies: 5
    Last Post: 14th December 2007, 13:41
  5. QProgressBar & 200%
    By Dmitry in forum Qt Programming
    Replies: 2
    Last Post: 20th January 2006, 11:33

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.