Results 1 to 3 of 3

Thread: Widget to show multiple progress %ages in the same bar?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Widget to show multiple progress %ages in the same bar?

    Hi,

    I am trying to find a suitable widget to visualise the following data.

    For one particular table item, I have a list of numbers (the list is small, usually 2-5) ; the size of list varies over time; the minimum and maximum values that the numbers can take are known (for example's sake, say, 0 and 100 respectively)

    I want a neat way to show these numbers visually (the picture I have in mind is ... imagine the background of the cell's total width to be 100%. I draw a red line at the %age widths represented by these numbers) ... so, the QGraphicsScene seemed the way to go. However, the documentation suggests that if the %ages change over time then it is not ideal.

    Now, QProgressBar appears to be the ideal thing if, instead of a list of numbers, I had a single number. So, I wanted to know if something analogous exists to display ...essentially, multiple progress %ages in the same bar?
    Or any other widget that shows this neatly? (Worst case, might have to implement a dropdown list at each cell, with each item being a progress bar ... doesnt seem aesthetically pleasing).

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Widget to show multiple progress %ages in the same bar?

    Why not create a widget that contains multiple progress bars?
    You can add custom slots and signals.
    You can add functions to set a list of data at once (if that's what you want)
    You can use stylesheets or similar to style the widget like you want.

  3. #3
    Join Date
    Sep 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Widget to show multiple progress %ages in the same bar?

    Just wanted to assure myself I'm not reinventing the wheel I guess.

    Thanks, I'll try making a custom widget.

Similar Threads

  1. Hello World app takes ages to start on WM6
    By fabiobond in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 30th July 2010, 08:03
  2. How show progress of slow a operation?
    By shud in forum Qt Programming
    Replies: 9
    Last Post: 3rd December 2009, 22:10
  3. Replies: 1
    Last Post: 16th April 2009, 16:12
  4. Show progress of a time consuming operation
    By rainman110 in forum Newbie
    Replies: 7
    Last Post: 10th February 2008, 12:07
  5. Not show the progress bars under another window
    By SkripT in forum Qt Programming
    Replies: 6
    Last Post: 13th March 2006, 17: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.