Project

General

Profile

Feature #2170

Progress bar with infinite loop

Added by Vitaly Volochay over 8 years ago. Updated over 8 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
-
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?

#1

Updated by Koen Deforche over 8 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

#2

Updated by Vitaly Volochay over 8 years ago

Hm, don't think I'm understand how to do it. Could you please show me and example?

#3

Updated by Wim Dumon over 8 years ago

I think Koen suggests this:

setRange(0,10);

// and then repeatedly from time to time:
setRange(((int)value() + 1) % maximum());
#4

Updated by Vitaly Volochay over 8 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.

Also available in: Atom PDF