QSystemTrayIcon doesn't work correclty on 16.04 final release

Bug #1574542 reported by Gaurav Sood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtbase-opensource-src (Ubuntu)
New
Undecided
Unassigned

Bug Description

I created an gui application which uses 'SystemTrayIcon' to put an icon on systemtray. It works correctly when I build application with qt4 irrespective of ubuntu version.

But same application doesn't work when built with qt5. I tested on Ubunutu 15.10 , 16.04 beta2 and 16.04 final releases.
Surprisingly it works on ubuntu 16.04 beta-1 release. I can see the icon on systemtray.

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Thanks for the bug report.

Which desktop do you use? Unity? Do you have appmenu-qt5 package installed?

Can you please run dbus-monitor, then start your application, and paste somewhere the full dbus-monitor log?

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

I have attached the log file for the qt5 case in which icon doesn't appear.

I do have appmenu-qt5 package installed and i am using unity 7.4.0

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

I tried the same application on fedora 23 which have gnome as desktop environment. Its working there.
Something different is happening in unity

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Hi Gaurav,

Does your application use the QSystemTrayIcon::isSystemTrayAvailable() method? If yes, then my appmenu-qt5 fix from lp:~mitya57/appmenu-qt5/lp1574699 should fix this bug. If you can build/install appmenu-qt5 from there and test, that would be nice.

As a workaround, start your app with QT_QPA_PLATFORMTHEME=generic, and it should work.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.