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

QSystemTrayIcon does not go into system tray.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.0.0, 5.1.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      KDE 4.10.5, Arch Linux

      Description

      When run next code:

      #include <QtGui>
      #include <QtWidgets>
      
      int main(int argc, char **argv) {
      	QApplication app(argc, argv);
      	QIcon icon("/path/to/icon.png");
      	QSystemTrayIcon tray(icon);
      	QWidget widget;
      	widget.setWindowIcon(icon);
      	widget.show();
      	tray.show();
      	return app.exec();
      }
      

      I get the attatched scene.
      The tray icon is not in tray and it is located in top left of the monitor screen and stays on top.
      Sometimes it works well, but in many cases, this problem occurs.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              peppe Giuseppe D'Angelo
              Reporter:
              xylosper Byoung-young Lee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes