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

CLONE -QMenu exec()'ed on QSystemTrayIcon::Trigger won't disappear (Windows-only)

    XMLWordPrintable

Details

    • af7d2b2127dadbdf828c60c75255bb1b4f591651

    Description

      To reproduce, run the posted code at:

      http://doc.qt.nokia.com/latest/desktop-systray.html

      And right-click on the system tray icon.

      Using:

      case QSystemTrayIcon::Trigger:

      { QMenu menu; menu.addAction("Test"); menu.exec(QCursor::pos()); }

      And left-clicking as posted in the bug this is cloned from works, however in the example the QMenu is added this way:

      trayIconMenu = new QMenu(this);
      .
      .
      .
      trayIcon = new QSystemTrayIcon(this);
      trayIcon->setContextMenu(trayIconMenu);

      Attachments

        1. before.png
          4 kB
          Tay Grigg
        2. after.png
          5 kB
          Tay Grigg
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            tkdiamond08 Tay Grigg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes