Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt loading indicator widget [closed]

Tags:

qt

Is there any simple loading indicator widget, to show some work-in-progress, something like a rotating dots in a circle or so? Something like this:

loader

like image 447
Albert Avatar asked Nov 16 '14 15:11

Albert


1 Answers

No, there is no such widget, but there is another very simple way to do this. You can play gif animation to do this. For example:

QLabel *lbl = new QLabel; QMovie *movie = new QMovie("G:/loader.gif"); lbl->setMovie(movie); lbl->show(); movie->start(); 

You can get gif-animation from here or use another gif.

I think that it is the easiest way because you can create this animation in app with timer, color changing and so on, but it requires a lot of work and time. But QMovie is powerful and easy to use class.

like image 195
Kosovan Avatar answered Oct 03 '22 13:10

Kosovan