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:
-
Someone developed such widget here: github.com/mojocorp/QProgressIndicator This is a widget painting exactly what you need. Please note the animation is created by the code, is not an animated gif. This have the advatnage you can resize the widget as you prefer without loose definiton.– SuppamanDec 13, 2016 at 13:21
-
1github.com/snowwlex/QtWaitingSpinner works, once the question is reopened, I can put in a complete answer on its usage.– phyattSep 1, 2017 at 13:46
1 Answer
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.
-
8
-
1
-
On the comment "there is no such widget": Actually, several were posted here, but the answers were deleted because they are against StackOverflow policies to post just links.– AlbertFeb 5, 2019 at 8:34