Project

General

Profile

Actions

Feature #2170

open

Progress bar with infinite loop

Added by Vitaly Volochay over 10 years ago. Updated over 10 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?

Actions #1

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

Actions #2

Updated by Vitaly Volochay over 10 years ago

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

Actions #3

Updated by Wim Dumon over 10 years ago

I think Koen suggests this:

setRange(0,10);

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

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

Actions

Also available in: Atom PDF