Results 1 to 3 of 3

Thread: QSystemTrayIcon capture mouse hover event

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    May 2009
    Posts
    62
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2
    Thanked 16 Times in 15 Posts

    Default Re: QSystemTrayIcon capture mouse hover event

    The class reference for QSystemTrayIcon says:

    Only on X11, when a tooltip is requested, the QSystemTrayIcon receives a QHelpEvent of type QEvent::ToolTip. Additionally, the QSystemTrayIcon receives wheel events of type QEvent::Wheel. These are not supported on any other platform.
    So if you are coding for an other platform, you are unlucky. On X11, you should get a ToolTip event.

    An other approach would be to set the toolTip whenever the current song changes or to update the toolTip regularly using a QTimer.

  2. The following user says thank you to shentian for this useful post:

    alan (1st August 2009)

Similar Threads

  1. Hover on mouse over while dragging
    By mooreaa in forum Qt Programming
    Replies: 3
    Last Post: 6th February 2010, 10:31
  2. how to send a emulated mouse event to QListWidget
    By yxmaomao in forum Qt Programming
    Replies: 4
    Last Post: 22nd July 2008, 02:49
  3. pass mouse event information to another widget
    By Rooster in forum Qt Programming
    Replies: 5
    Last Post: 12th July 2008, 04:23
  4. Replies: 1
    Last Post: 4th February 2008, 11:12
  5. The event fired by the mouse click on the frame
    By Placido Currò in forum Qt Programming
    Replies: 8
    Last Post: 3rd March 2007, 09:05

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.