Feature #2170
Progress bar with infinite loop
Start date:
09/03/2013
Due date:
% Done:
0%
Estimated time:
Description
Hello! In Qt it's possible to create progress bar with infinite loop by calling:
QProgressBar* progress = new QProgressBar;
progress->setRange(0, 0);
After this progress slider is floating from left to right, after he reaches right edge, he appers on the left again etc...
In Wt I tried the same and it doesn't work, how can I reach same effect?
Updated by Koen Deforche over 9 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
Hey,
That's something we haven't implemented (yet). I guess you could easily work around it by setting its value modulo the range ?
koen
Updated by Vitaly Volochay over 9 years ago
Hm, don't think I'm understand how to do it. Could you please show me and example?
Updated by Wim Dumon over 9 years ago
I think Koen suggests this:
setRange(0,10); // and then repeatedly from time to time: setRange(((int)value() + 1) % maximum());
Updated by Vitaly Volochay over 9 years ago
Thanks, for your answer. I need little different effect, so decided to draw it by myself (WPaintedWidget), because I need it in decoration purpoces.