← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1542691] [NEW] QSystemTrayIcon doesn't work when several.

 

Public bug reported:

Hello,
I've report this bug in Qt forum:
https://forum.qt.io/topic/62137/qsystemtrayicon-ubuntu-15-10
But they say to ask you.

With new version of Ubuntu (with Unity) 15.10 and compiled with Qt 4.8.6, the QSystemTrayIcon doesn't work properly.
We have multi icons depends the service notification. When we trigger .show() for service icon, a new main icon appears (with its ContextMenu). And when we trigger .hide() the new icon stay.
So, to test it, I've wrote a litle application with only SystrayIcon. You can find Test Project on original thread.
I've tested it with different version of Qt5. Only 5.5.1 works, but with only one icon. When I want to show the second directly, no one appears. If I don't show second, the first take its own and the second's context menu. When I trigger second.show() nothing happens.
showMessage() is working well (not msecs) with one or two icons.
contextmenu only works with one icon shown.
toolTip doesn't work.
activated signal isn't triggered.

I've reinstalled fresh ubuntu 15.10 (in VirtualBox) with its own qt5.4.2.
Now main icon appears two time (with same context menu).

What can I do to get icons (or something else) in systray?

Thanks.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: qtbase5-dev 5.4.2+dfsg-2ubuntu9
ProcVersionSignature: Ubuntu 4.2.0-27.32-generic 4.2.8-ckt1
Uname: Linux 4.2.0-27-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Feb  6 19:09:14 2016
InstallationDate: Installed on 2015-12-26 (42 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
ProcEnviron:
 LANGUAGE=fr_FR
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: qtbase-opensource-src
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: qtbase-opensource-src (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: qsystemtrayicon wily

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtbase-opensource-src in
Ubuntu.
https://bugs.launchpad.net/bugs/1542691

Title:
  QSystemTrayIcon doesn't work when several.

Status in qtbase-opensource-src package in Ubuntu:
  New

Bug description:
  Hello,
  I've report this bug in Qt forum:
  https://forum.qt.io/topic/62137/qsystemtrayicon-ubuntu-15-10
  But they say to ask you.

  With new version of Ubuntu (with Unity) 15.10 and compiled with Qt 4.8.6, the QSystemTrayIcon doesn't work properly.
  We have multi icons depends the service notification. When we trigger .show() for service icon, a new main icon appears (with its ContextMenu). And when we trigger .hide() the new icon stay.
  So, to test it, I've wrote a litle application with only SystrayIcon. You can find Test Project on original thread.
  I've tested it with different version of Qt5. Only 5.5.1 works, but with only one icon. When I want to show the second directly, no one appears. If I don't show second, the first take its own and the second's context menu. When I trigger second.show() nothing happens.
  showMessage() is working well (not msecs) with one or two icons.
  contextmenu only works with one icon shown.
  toolTip doesn't work.
  activated signal isn't triggered.

  I've reinstalled fresh ubuntu 15.10 (in VirtualBox) with its own qt5.4.2.
  Now main icon appears two time (with same context menu).

  What can I do to get icons (or something else) in systray?

  Thanks.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: qtbase5-dev 5.4.2+dfsg-2ubuntu9
  ProcVersionSignature: Ubuntu 4.2.0-27.32-generic 4.2.8-ckt1
  Uname: Linux 4.2.0-27-generic x86_64
  ApportVersion: 2.19.1-0ubuntu5
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Sat Feb  6 19:09:14 2016
  InstallationDate: Installed on 2015-12-26 (42 days ago)
  InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
  ProcEnviron:
   LANGUAGE=fr_FR
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  SourcePackage: qtbase-opensource-src
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1542691/+subscriptions