Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.7.1
-
None
-
Win 7
-
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);