PDA

View Full Version : Animated icon on SystemTray



arbi
11th September 2008, 13:50
hi,

i want my application to display an animated icon on the systemtray while certain things happening.

I ve set the icon property of QSystemTrayIcon to an animated gif or mng ; it statically displays only the first frame. no animation happens.

this is possible with QMovie and QLabel::setMovie().


how is it done in Qt to display animated graphics on the tray.?

thanks..

jpn
11th September 2008, 14:11
Use QMovie and change the icon whenever QMovie::frameChanged() is emitted.

arbi
11th September 2008, 14:35
it works perfectly fine. thanks..