Results 1 to 3 of 3

Thread: Animated icon on SystemTray

  1. #1
    Join Date
    Aug 2008
    Posts
    27
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Animated icon on SystemTray

    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..

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Animated icon on SystemTray

    Use QMovie and change the icon whenever QMovie::frameChanged() is emitted.
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    arbi (11th September 2008)

  4. #3
    Join Date
    Aug 2008
    Posts
    27
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Animated icon on SystemTray

    it works perfectly fine. thanks..

Similar Threads

  1. QMessageBox missing icon
    By zanth in forum Qt Programming
    Replies: 3
    Last Post: 8th July 2010, 21:20
  2. Couple of questions: main window icon + toolbar icon
    By bpackard in forum Qt Programming
    Replies: 0
    Last Post: 20th March 2008, 19:03
  3. Mac application and the Dock Icon
    By sekelsenmat in forum Qt Programming
    Replies: 3
    Last Post: 26th September 2007, 10:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.