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

QSystemTrayIcon does not always show up in Ubuntu 11.04

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.7.3
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 11.04 32-bit

      Description

      I have some code to show a system tray icon:

          QSystemTrayIcon systrayIcon(QIcon("html/svg/systrayIcon.svg"));
          systrayIcon.setVisible(true);
          systrayIcon.show();
      

      On a mac the icon is always being shown. However, on Ubuntu 11.04 it is sometimes showing up and sometimes not. When it does not show up, I get a whole slew of warnings in the console, beginning with:

      Warning: QPainter::begin: Paint device returned engine == 0, type: 3
      Warning: QPainter::save: Painter not active
      Warning: QPainter::translate: Painter not active
      Warning: QPainter::scale: Painter not active
      Warning: QPainter::setPen: Painter not active
      ...
      

      I have attached the full list of warnings as warnings.txt.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              earthdomain Earth Domain (Inactive)
              Reporter:
              drewmart Drew Martin
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes