This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] widget for symbolizing "work in progress"?

Tags: None
(comma "," separated)
User avatar
urwald
Registered Member
Posts
30
Karma
0
OS
Hello.

I need a widget that's demonstrates the user, that work is in progress.

It's about a small GUI for a console programm. The shutdown of this console programm takes about 10-40 sec, and no progress info is avaible. So I want to display a widget with the message "Please wait while shutting down...".

As no progress info is avaible, I can't use a normal progress bar. However I want to use something that's moving - to demonstrate to the user that the app isn't frozen.

I've seen widgets (for example in firefox), which are like similar to a progress bar, but the blue beam moves continiously from the left to the right and back.

Exists such a Qt/KDE4 class? Or exists another solution to this problem?

Regards.

Tim

Last edited by urwald on Tue Nov 18, 2008 9:17 am, edited 1 time in total.


urwald, proud to be a member of KDE forums since 2008-Oct.
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
There's something that looks like e.g. Firefox' activity indicator (round thing in the top right corner). Folderview uses it I think. Unfortunately I don't know anything more about it

EDIT: I think the word "widget" confused me. I was sure that you were talking about a plasmoid! Guess it's time for me to go to sleep...

Last edited by Hans on Tue Nov 18, 2008 1:02 am, edited 1 time in total.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
neverendingo
Administrator
Posts
2136
Karma
17
OS
Take a look at http://doc.trolltech.com/4.2/qprogressbar.html#details
It is a normal progressbar but has the advantage of a busy indicator when the time cannot really be determined.


New to KDE Software? - get help from Userbase or ask questions on the Forums
Communicate.
Image
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS
neverendingo wrote:Take a look at http://doc.trolltech.com/4.2/qprogressbar.html#details
It is a normal progressbar but has the advantage of a busy indicator when the time cannot really be determined.
If minimum and maximum both are set to 0, the bar shows a busy indicator instead of a percentage of steps. This is useful, for example, when using QFtp or QHttp to download items when they are unable to determine the size of the item being downloaded.


Get problems solved faster - get reply notifications through Jabber!
User avatar
urwald
Registered Member
Posts
30
Karma
0
OS
Thanks.

I've tried QProgressBar with min/max = 0 and it works great. (I just didn't read this last paragraph in the Qt documentation).

EDIT: BTW: I've now found also a special "busy widget" in libplasma: http://api.kde.org/4.x-api/kdelibs-apid ... idget.html

Last edited by urwald on Tue Nov 18, 2008 8:20 am, edited 1 time in total.


urwald, proud to be a member of KDE forums since 2008-Oct.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]