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

QSystemTrayIcon does not go into system tray.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.0.0, 5.1.0
    • None
    • KDE 4.10.5, Arch Linux

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes