Tray Icon Special Actions are not converted to indicator ones

Bug #1027652 reported by Alex Solanos on 2012-07-22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
sni-qt (Ubuntu)

Bug Description

If I make a tray icon in Ubuntu 12.04 using Qt and do the following in my code:





void MainWindow::clickSysTrayIcon(QSystemTrayIcon::ActivationReason reason)
    qDebug() << "I AM IN";

The phrase 'I AM IN' will never be called!
I have tried with left/right click, middle click, wheel etc and nothing seems to launch this qDebug action.

However, if I use exactly the same code under Lubuntu for example, which haven't removed tray icons, then the 'I AM IN' string is being outputted every time I do an action to the tray icon, like left/right/middle clicks etc.

This is very useful when you want to do an action on left or middle click. But currently this is impossible with any qt application which uses qsystemtrayicon!

I think that it is sni-qt's issue not to convert these tray icon actions to the corresponding indicator actions!

description: updated
description: updated
Bilal Akhtar (bilalakhtar) wrote :

I don't think this is part of the indicator spec. As far as I know, clicking on the icon itself isn't supposed to send any signals purposely. The behaviour is probably intended since all icons are supposed to be menus. I might be wrong though.

Charles, what do you think?

Alex Solanos (hakermania) wrote :

So, don't you think that the tray icon action should be converted to the corresponding indicator ones?

I mean, let's take for example the sound indicator. If you go over it and move the wheel the sound will increase or decrease!

Providing that there are actions like this in the indicators, you should be able to detect actions like left/right/middle clicks, as well.

Bilal Akhtar (bilalakhtar) wrote :

My point was, clicking an icon shouldn't send a signal, but instead individual menus should send the signal. I could be wrong, though, that's why I'm waiting for Charles to give his word.

Alex Solanos (hakermania) wrote :

Any news?

dimovnike (dimovnike) wrote :

issue present in ubuntu 13.04 too

stonex (shitianxin) wrote :

Yes, I'm really agree with you. I think clicking an icon should send a signal.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sni-qt (Ubuntu):
status: New → Confirmed
Christophe Olinger (olingerc) wrote :

Issue present in ubuntu 14.04

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers