Qt

system tray icon is next to launcher

Bug #1209106 reported by Goddard
168
This bug affects 36 people
Affects Status Importance Assigned to Milestone
Qt
New
Undecided
Unassigned
appmenu-qt5
Fix Released
Undecided
Dmitry Shachnev
sni-qt
Confirmed
Undecided
Unassigned
appmenu-qt5 (Ubuntu)
Fix Released
Undecided
Dmitry Shachnev

Bug Description

The system tray icon is next to the launcher in the latest verion of Qt Creator.

Related branches

Revision history for this message
Goddard (kinggoddard) wrote :

Here is a screen shot of a stock Ubuntu 13.04 running the default QT that comes with 13.04.

Revision history for this message
maxim (kazak1377) wrote :

Same problem. Additional info: qt 5.2, downloaded from qt-project site. Ubuntu 13.10 x64 sni-qt:i386.

Revision history for this message
Dmitry (grayscale) wrote :

Qt5.2 Same problem Ubuntu 14.04
=(

Changed in sni-qt:
status: New → Confirmed
Revision history for this message
Nathan Osman (george-edison55) wrote :

I can reproduce this on Ubuntu 14.04 amd64 with Qt 5.2.1 installed. The attached screenshot demonstrates that the icon is displayed next to the launcher.

Revision history for this message
Scott Howard (showard314) wrote :
Revision history for this message
Aurel Branzeanu (thunder-riscom) wrote :

Qt 5.3.2 and 5.4 beta affected too on Ubuntu 14.04

Revision history for this message
flareguner (flareguner) wrote :

Confirm that Qt 5.3.x on Ubuntu 14.04 is affected. Need ASAP fix.

Ted Gould (ted)
Changed in sni-qt (Ubuntu):
status: New → Confirmed
Revision history for this message
Keng-Yu Lin (lexical) wrote :

I am curious if sni-qt really supports qt5. The following information is gotten from Ubuntu 14.10:

$ apt-cache show sni-qt
Package: sni-qt
Priority: optional
Section: x11
Installed-Size: 185
Maintainer: Kubuntu Developers <email address hidden>
Architecture: amd64
Version: 0.2.6-0ubuntu1
Depends: libc6 (>= 2.14), libdbusmenu-qt2 (>= 0.3.2), libgcc1 (>= 1:4.1.1), libqt4-dbus (>= 4:4.6.1), libqtcore4 (>= 4:4.7.3-1ubuntu3~), libqtgui4 (>= 4:4.7.3), libstdc++6 (>= 4.1.1)
Filename: pool/main/s/sni-qt/sni-qt_0.2.6-0ubuntu1_amd64.deb
Size: 56096
MD5sum: ee2efd177aa2147883098e57a0fb40ba
SHA1: 455af47ce3fe2efd6cbe07e20da708e40baf82ed
SHA256: ff9d23425a0b876b75acf1ae599e0e5c88ff4a76644274f09cde809007092823
Description-en: indicator support for Qt
 This plugin provides indicator support for Qt. It allows applications
 to export their systray transparently to the indicator system.
Description-md5: c0515721f2af4cef344b06fad7f320aa
Multi-Arch: same
Homepage: https://launchpad.net/sni-qt
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m
Task: ubuntu-desktop, ubuntu-usb, edubuntu-desktop, edubuntu-usb, ubuntukylin-desktop

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

My branch lp:~mitya57/appmenu-qt5/menus-and-systemtrayicons adds support for system tray icons to Ubuntu's Qt 5 platform theme. The maintainer promised to look at it when he returns from holidays.

Changed in appmenu-qt5:
status: New → In Progress
Changed in appmenu-qt5 (Ubuntu):
status: New → In Progress
Changed in appmenu-qt5:
assignee: nobody → Dmitry Shachnev (mitya57)
Changed in appmenu-qt5 (Ubuntu):
assignee: nobody → Dmitry Shachnev (mitya57)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package appmenu-qt5 - 0.3.0+15.04.20150121-0ubuntu1

---------------
appmenu-qt5 (0.3.0+15.04.20150121-0ubuntu1) vivid; urgency=low

  [ Dmitry Shachnev ]
  * Drop useless Suggests on qtbase packages.
  * Remove qt5-default build-dependency.
  * Add implementations of QPlatformMenuItem, QPlatformMenu and
    QPlatformSystemTrayIcon. (LP: #1209106)
 -- Ubuntu daily release <email address hidden> Wed, 21 Jan 2015 17:14:36 +0000

Changed in appmenu-qt5 (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Nathan Osman (george-edison55) wrote :

I backported the appmenu-qt5 package to Utopic and gave it a go, but unfortunately it doesn't seem to work. The tray icons still apear in the upper-left corner of the desktop.

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

Because it needs Qt 5.4.

Revision history for this message
Nathan Osman (george-edison55) wrote :

Ah. Would it be difficult to modify it to support Qt 5.1? Alternatively, do you know if there are plans to backport Qt 5.4 to Utopic and/or Trusty?

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

It is impossible to modify it to support Qt < 5.4, and we are not going to backport Qt 5.4 to Utopic. Sorry.

Revision history for this message
Nathan Osman (george-edison55) wrote :

Is there any way at all to create an application indicator from a Qt 5.1 application then? I tried doing this once before a while back and I remember that there was some sort of problem with event loops.

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

You can use the D-Bus interface yourself, i.e. calibre does that.

Changed in appmenu-qt5:
status: In Progress → Fix Released
no longer affects: sni-qt (Ubuntu)
Revision history for this message
Kamil Klimek (quclu) wrote :

Is this update going to ubuntu 14.04?

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

No, because

1) The code needs Qt 5.4;
2) I am not aware of any Qt 5 apps in Trusty archive that need a system tray icon.

Revision history for this message
Kamil Klimek (quclu) wrote :

While point 1 is quite fair, point 2 is totaly unfair - you're not aware of such app because noone will create such app. After testing that it does not work on Ubuntu how are ppl suposed to submit app to repository? They will have to make a workaround anyway because it does not work. According to http://doc.qt.io/QtSupportedPlatforms/index.html Qt 5.2 is supported for another year, but they state that fix was done on Ubuntu side for Qt 4.8. Why won't Ubuntu provide similar fix for current version of Qt 5 in 14.04?

Revision history for this message
Kamil Klimek (quclu) wrote :

And aren't Qt examples in Trusty archive? There is example with tray icon in Qt5 examples and it does not work properly? Isn't that a good reason for 14.04 fix?

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

We don't backport large changes to stable releases because they have a big regression potential. Adding QPlatformSystemTrayIcon code is definitely such a change.

Revision history for this message
Aurel Branzeanu (thunder-riscom) wrote :

Fixed in Qt 5.5.0

Revision history for this message
Manuel Sanchez (manuelbsan) wrote :

It's not fixed for me in Qt 5.6 and Ubuntu 14.04

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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