Results 1 to 6 of 6

Thread: Tray Ballon

  1. #1
    Join Date
    Feb 2007
    Posts
    16
    Thanks
    8
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Tray Ballon

    Hi,

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

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Tray Ballon

    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".
    J-P Nurmi

  3. #3
    Join Date
    Jan 2007
    Posts
    209
    Thanks
    34
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Tray Ballon

    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.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Tray Ballon

    The problem is not in showing the baloon, but in reacting on mouse hover event.

  5. #5
    Join Date
    Feb 2007
    Posts
    16
    Thanks
    8
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Thumbs up Re: Tray Ballon

    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.

  6. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Tray Ballon

    It's the tooltip as already mentioned..
    J-P Nurmi

  7. The following user says thank you to jpn for this useful post:

    eu.x (28th February 2007)

Similar Threads

  1. Minimize to system tray
    By krivenok in forum Qt Programming
    Replies: 5
    Last Post: 13th January 2009, 04:34
  2. QT4/QP Tray Icon
    By incapacitant in forum Newbie
    Replies: 12
    Last Post: 7th June 2006, 18:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.