Results 1 to 3 of 3

Thread: Tray icon is missing on some systems.

  1. #1
    Join Date
    May 2009
    Posts
    8
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Tray icon is missing on some systems.

    Hi,
    I'm using the Qt 4.5.2 SDK with MinGW to develop a program with a system tray icon on Windows.

    On the dev machine, this program works just as expected. When I deploy it to a different machine, the icon in the system tray is blank/missing!

    I've tried loading the icon both from a file and from a resource and the same thing happens. I've also noticed that I can't even save the icon on the systems that the bug appears on (with QIcon:: pixmap::save).

    The dev machine is an XP SP2, but I have encountered the bug both on SP1 and on SP2.

    I'm doing a simple deployment by copying the Qt and mingw dlls and the exe.

    Later edit: after doing some more testing, it seems that this happens only for ico files. BMPs work, with the obvious disadvantage of having no transparency.
    Last edited by eurodatar; 7th August 2009 at 09:34. Reason: updated contents

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Tray icon is missing on some systems.

    use .png format and make sure you deploy the proper image formats plugins in the imageformats directory.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  3. The following 2 users say thank you to faldzip for this useful post:

    ajax (16th February 2011), eurodatar (7th August 2009)

  4. #3
    Join Date
    Nov 2010
    Location
    Houston, Texas, USA
    Posts
    30
    Thanks
    11
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Tray icon is missing on some systems.

    Just want to add the following: for various reasons the graphics designer desired to provide the system tray icon as a .svg file. This worked fine on my machine so I had the impression that all was OK.

    Then the tester reported that system tray icon was either missing or transparent. We both had Win 7, 64 bit machines, so compatibility wasn't suspected.

    faldżip's post alerted me that .png might work better. Switching to .png solved the bug.

    Thanks, faldżip!

Similar Threads

  1. QMessageBox missing icon
    By zanth in forum Qt Programming
    Replies: 3
    Last Post: 8th July 2010, 21:20
  2. How to write some text next to the system tray icon?
    By alex chpenst in forum Qt Programming
    Replies: 3
    Last Post: 5th September 2008, 08:43
  3. possible to convert string/numbers to tray icon?
    By jarmok in forum Qt Programming
    Replies: 2
    Last Post: 19th July 2008, 18:34
  4. Replies: 4
    Last Post: 30th June 2008, 06:25
  5. Tray Icon
    By vishesh in forum Qt Programming
    Replies: 1
    Last Post: 12th July 2007, 19:10

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.