PDA

View Full Version : Status Widget



user_mail07
18th June 2008, 03:33
Guys,

I am looking for something (widget or animated class )that I can use to show the busy status on main screen. For instance I have some process going on the background (copy some data to removable device) but I want to display user some kind of screen that process is currently busy..I can use progress bar to show the progress status. Is there any widget besides QProgressbar or other way to display some sort of animation on screen. I tried to set Pixmap on the label on main screen but I want to keep moving that pixmap. As soon I get status back from background process I want to stop or hide that animation. Something like spinner ?

Thanks.

jay
18th June 2008, 05:44
you can use QMoviie to show the animated gif.


QLabel label;
QMovie *movie = new QMovie("sample.gif");
label.setMovie(movie);
movie->start();

you can stop the gif animation using stop().

Hope this helps.

aamer4yu
18th June 2008, 06:26
Or you can make your own widget !!
You will have much power and control. You can -
1) show circles
2) scrolling text
3) anitmation (QMovie/ gif)
u can think more, i bet :)

user_mail07
18th June 2008, 07:41
Thanks guys for replying. I am using Qt3 ..Do I have to setMovie in loop. because if movie will stop after few seconds or minutes once clip will end..how do I keep continue playing that .mng movie. I will also try with creating my own widget.

caduel
18th June 2008, 08:51
in Qt3, you can "connect" to
QMovie::connectStatus
(Interesting alternative to having signals... was not aware of that.)

just connect it to some slot of yours, check if the new status is EndOfLoop or so and restart.
(Have not tried it, but should work.)

HTH