Results 1 to 1 of 1

Thread: QSystemTrayIcon does not scale on X11

  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QSystemTrayIcon does not scale on X11

    I noticed that icons created using QSystemTrayIcon on Gnome and KDE have a fixed size in the notification area, unlike others which scale up and down with the tray. Is there any way to make the icons change size when the tray does ? The documentation says
    On Windows, the system tray icon size is 16x16; on X11, the preferred size is 22x22. The icon will be scaled to the appropriate size as necessary.
    but it doesn't seem to happen.
    I load the icon like this :
    mywidget::mywidget()
    {
    ...

    trayIcon->setIcon(QPixmap(":/res/transparent_32.png"));
    }
    I unsuccessfully tried a png, jpg and ico.

    I attached a screenshot of what it looks like (the icons on the left and on the right of the big blue (scaled) music note)

    Pierre
    Attached Images Attached Images

Similar Threads

  1. Replies: 1
    Last Post: 4th February 2008, 11:12
  2. how to zoom out item in View/Scene
    By nileshsince1980 in forum Qt Programming
    Replies: 7
    Last Post: 28th December 2007, 10:24
  3. How to copy pixmap and keep scale ratio?
    By Teerayoot in forum Qt Programming
    Replies: 2
    Last Post: 11th May 2007, 11:42
  4. QGraphicsView scale question.
    By hickscorp in forum Qt Programming
    Replies: 20
    Last Post: 15th April 2007, 02:28
  5. My own scale widget in Qwt
    By igrms in forum Qwt
    Replies: 7
    Last Post: 15th June 2006, 21:18

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.