Results 1 to 9 of 9

Thread: Progress Bar with double values

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2006
    Location
    istanbul, turkey
    Posts
    42
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Exclamation Re: Progress Bar with double values

    yes ofcourse you may have,
    but as you said you want to use percentage.
    it doesn't make any change between %33,33 and %33 actually, but if it's requirement of course you should.
    in your case percentage could be boundary (upper and lower limits of numbers is certain).
    so you simply multiply the numbers with 100 then when you can display what you want to display either %33,33 or %33.
    but in this case you need to inherit.

  2. #2
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    70
    Thanked 59 Times in 57 Posts

    Default Re: Progress Bar with double values

    Hi,

    Ok, thanks for your reply.

    I think that I will hide the text of progress bar and insert a QLabel that will display the value with floating point.

    Thanks,
    Last edited by ^NyAw^; 23rd March 2007 at 15:31.
    Òscar Llarch i Galán

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Progress Bar with double values

    Why not?
    Because there is no "next number" from 0.2 to 0.3. (for example)
    Unless you can say what it is.

    I want to use the QProgressBar as a percent indicator. I have an integer counting "good" values and another counting "bad" values. I want to know which % are the good values respect the total values.
    Then all you need is to decide on the percent resolution, and mutiply acourdigly.
    Then you have ints, and you can use the progress bar normaly.

Similar Threads

  1. RGB values greater than 8bit & QColor?
    By smacchia in forum Newbie
    Replies: 11
    Last Post: 21st March 2007, 14:40
  2. How To Incorporate Progress Bar In Program
    By deekayt in forum Qt Programming
    Replies: 8
    Last Post: 20th December 2006, 14:40
  3. MYSQL insert
    By allensr in forum Newbie
    Replies: 4
    Last Post: 14th August 2006, 16:55
  4. Progress Bar to be shown!!!
    By Kapil in forum Qt Programming
    Replies: 7
    Last Post: 23rd May 2006, 09:36
  5. Push button double click
    By curtisw in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 16:40

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.