QSystemTrayIcon not sending messageClicked signal on Linux
-
I'm trying to figure out why QSystemTrayIcon is not sending the messageClicked signal on Linux when I click on the balloon popup message. Same application under Windows sends the signal.
If I read the documentation correctly it should be supported on Linux, it's only not sent on MacOS.
I've tested openSUSE 15.0 with KDE Plasma and Ubuntu 20.04.
Is there something else that needs to be done in order to receive those signals?
-
@dporobic said in QSystemTrayIcon not sending messageClicked signal on Linux:
QSystemTrayIcon is not sending the messageClicked signal on Linux
Simple answer: mileage seems to vary! have a Google of
QSystemTrayIcon is not sending the messageClicked signal on Linux
. See for example https://stackoverflow.com/questions/43657890/pyqt5-qsystemtrayicon-activated-signal-not-working. -
@JonB said in QSystemTrayIcon not sending messageClicked signal on Linux:
@dporobic said in QSystemTrayIcon not sending messageClicked signal on Linux:
QSystemTrayIcon is not sending the messageClicked signal on Linux
Simple answer: mileage seems to vary! have a Google of
QSystemTrayIcon is not sending the messageClicked signal on Linux
. See for example https://stackoverflow.com/questions/43657890/pyqt5-qsystemtrayicon-activated-signal-not-working.I know that post and this is actually not my issue, the activate signal works perfectly fine for me, I'm having an issue with the messageClicked signal. The activate signal is sent when you click on the tray icon and the messageClicked signal is sent, well, when you click on the balloon popup message. I did google this before of course and all I was able to find is that some folks complain about not getting the signal on MacOS, which is not supported, so I wrote here.
-
Hi,
You should add what version of Plasma you are using as well as desktop environment you are using on Ubuntu.
By the way, did you test that with the Qt version provided by these distributions ?
-
@SGaist said in QSystemTrayIcon not sending messageClicked signal on Linux:
You should add what version of Plasma you are using as well as desktop environment you are using on Ubuntu.
I'm using Plasma 5.12.8 on OpenSUSE and on Ubuntu Gnome 3.36.1.
By the way, did you test that with the Qt version provided by these distributions ?
On my openSUSE machine yes, I'm using the one installed on the OS (Qt 5.9.4) and I'm building my application from source.
-
I think the issue persists (Ubuntu 20.04.1, Qt 5.15.2 (via PySide2), factory defaults otherwise mostly, incl. Gnome 3.36.8).
I suppose this is the related bug ticket, if anyone wants to join upvoting, I'd chance you're very welcome to do so :)
QSystemTrayIcon::messageClicked not triggered when clicking on the popup message in KDE PlasmaOh yes, if anyone is aware of a workaround, please shout!
-
@brezniczky said in QSystemTrayIcon not sending messageClicked signal on Linux:
Oh yes, if anyone is aware of a workaround, please shout!
Oddly enough I noticed that using all MessageIcon types I can select the messagebox text (and therefore messageClicked is not triggered), but only the Critical MessageIcon type allows me to click on it and trigger the signal; that's the workaround I'm using.