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

Allow QSystemTrayIcon to be created on heap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.6.0
    • 4.5.2
    • Widgets: Main Window
    • None

    Description

      ... with a QApplication as parent.

      This currently leads to a crash at the exit:

      lass TestApp : public QApplication
      {
      Q_OBJECT

      QIcon icon;
      QSystemTrayIcon *tray_icon;
      QTimer timer;

      public:
      TestApp(int &argc, char *argv[]) : QApplication(argc, argv)

      { icon.addFile("icon.png"); tray_icon = new QSystemTrayIcon(icon, this); tray_icon->show(); connect(&timer, SIGNAL(timeout()), this, SLOT(quit())); timer.start(2000); }

      ~TestApp() { }
      };

      Attachments

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

        Activity

          People

            bachewii Jens
            mgoetz Markus Goetz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes