PDA

View Full Version : Tray Ballon



eu.x
27th February 2007, 21:50
Hi,

How can I show a balloon message everytime I put the mouse over a tray icon?

jpn
27th February 2007, 22:25
I'm afraid that the current implementation of QSystemTrayIcon makes it possible to show only a tooltip upon hovering. QSystemTrayIcon::activated() is emitted whenever upon corresponding action, but unfortunately there is no way to react to "mouse over".

VireX
28th February 2007, 06:08
Yeah but that only shows a tooltip, which is fine. However, he was asking for a balloon, I know there is a STYLE setting for this in the Win API that allows people to use the balloon style, but I don't know if Qt has that implemented.

wysota
28th February 2007, 10:15
The problem is not in showing the baloon, but in reacting on mouse hover event.

eu.x
28th February 2007, 11:55
On 'System Tray' example of Qt4, when the mouse is over the tray icon there is a tip, or something like that, that will be fine to my project. I think it's showed by an 'activated' signal. I'll read the source code and try to understand it.

Thank you all.

jpn
28th February 2007, 12:00
It's the tooltip (http://doc.trolltech.com/4.2/qsystemtrayicon.html#toolTip-prop) as already mentioned.. :)