[Python-modules-team] Bug#867794: python3-pyqt5: App tray icon won't show if show() before systray is available

Dmitry Shachnev mitya57 at debian.org
Tue Jul 11 12:22:19 UTC 2017


Control: reassign -1 libqt5widgets5 5.7.1+dfsg-4
Control: forwarded -1 https://bugreports.qt.io/browse/QTBUG-61898

Hi Jérôme,

On Sun, Jul 09, 2017 at 10:56:05PM +0200, Jérôme wrote:
> Here's a minified example to reproduce the issue :
>
> [...]
>
> Remove systray applet from panel, launch code, add systray applet. The
> icon does not show up.

This is a bug in Qt, and I can confirm it with Qt 5.9 and C++ code.

If you want to workaround this in your code, do not call show() unless
QSystemTrayIcon.isSystemTrayAvailable() returns True.

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20170711/63d442c9/attachment.sig>


More information about the Python-modules-team mailing list