https://bugs.kde.org/show_bug.cgi?id=365105
Bug ID: 365105 Summary: QSystemTrayIcon with context menu does not react after second show Product: plasmashell Version: 5.6.5 Platform: Archlinux Packages OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: System Tray Assignee: plasma-b...@kde.org Reporter: goto...@gmx.net During development with Qt I noticed a bug in the Plasma's system tray when using QSystemTrayIcon: If the system tray has a context menu set and is shown after one hide (show->hide->show) the tray doesn't react anymore: * no context menu shown on right click * left click doesn't emit signal Reproducible: Always Steps to Reproduce: 1.Try this code inside a QMainWindow: QSystemTrayIcon *sysTray = new QSystemTrayIcon(this); sysTray->setIcon(style()->standardIcon(QStyle::SP_DesktopIcon)); QMenu *trayMenu = new QMenu(this); sysTray->setContextMenu(trayMenu); connect(sysTray, &QSystemTrayIcon::activated, [=](QSystemTrayIcon::ActivationReason){ qDebug() << "clicked"; }); sysTray->show(); sysTray->hide(); sysTray->show(); 2. compile 3. run:) Actual Results: left click on tray does not do anything ("clicked" not printed) Expected Results: print "clicked" to std output This does not happen in LXQt, so I assume it is related to KF5. -- You are receiving this mail because: You are watching all bug changes.