[Qt-interest] [qt-interest] Message associated with trayIcon.

Denis Dzyubenko shadone at gmail.com
Thu Sep 10 12:57:10 CEST 2009


Hi Sachin,

2009/9/10 Sachin Srivastava <sachin.srivastava at enterprisedb.com>:
> This is what i am doing..
>
>     if (!trayIcon)
>        createTrayIcon();     // This sets the trayIconMenu, sets the
> Icon for tray
>     // Show the icon (before displaying the message)!
>     trayIcon->show();
>
>    if (trayIcon->isVisible())
>         trayIcon->showMessage(title, msg, QSystemTrayIcon::Information,
> 5000);

Yes indeed there is a bug in QSystemTrayIcon on X11 - when showing a
message right after showing the icon itself, the position of the
balloon will not be correct (that happens because of the way the tray
icon is implemented on X11 - it is actually a window that should be
shown and then re-reparented to the notification area, and since that
happens asynchronously, Qt doesn't know if the window was already
reparented and shows the balloon too early).

Here is the task in the Qt task tracker:
http://qt.nokia.com/developer/task-tracker/index_html?method=entry&id=195042

-- 
Best regards,
Denis.




More information about the Qt-interest-old mailing list