Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24085

QSystemTrayIcon in Qt 4.8.0 under Ubuntu 11.10 does not show icon in icon tray

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.0
    • None
    • Ubuntu 11.10, 32 bits, Unity desktop

      QSystemTrayIcon in Qt 4.8.0 under Ubuntu 11.10 (32 bits) using the Unity desktop no longer shows the icon in the system tray. The minimal program attached shows the problem. The Qt example application System Tray (systray) also exhibits the problem. When I build the minimal application under MacOSX (Lion) everything works properly.

      The bugs seems related to QTBUG-10992 and QTBUG-19158.
      The following forum thread documents this bug: developer.qt.nokia.com/forums/viewthread/14066/

      #include <QtGui>
      
      
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
          QLabel win("There should be a new icon in the system tray");
          win.setMargin(20);
      
          QSystemTrayIcon trayIcon(QIcon("/<absolute path to file>/heart.svg"));
          trayIcon.show();
      
          win.show();
          return app.exec();
      }
      

      Note: Please adjust the absolute file path in the code above to comply with your system.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            jirauser26040 user-4d697 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes