Results 1 to 4 of 4

Thread: Tooltip enter/leave event.

  1. #1
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default Tooltip enter/leave event.

    Hey guys, I've created a tooltip widget.

    ...
    setWindowFlags(Qt::Popup);
    ...

    For some reason I don't get any enter / leave event in my parented widgets.
    Any idea?

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tooltip enter/leave event.

    What widgets would be those?
    The ones that have the Popup flag, or the ones that should display the popup? Did you reimplement their enter/leave events correctly?

    BTW, the window flag for a tooltip is Qt::ToolTip, not popup.

  3. #3
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default Re: Tooltip enter/leave event.

    What widgets would be those?
    The ones that have the Popup flag, or the ones that should display the popup? Did you reimplement their enter/leave events correctly?
    > The ones inside / parented in the popup widget.

    BTW, the window flag for a tooltip is Qt::ToolTip, not popup.
    > Actually Qt::ToolTip doesn't draw a shadow under the widget and I need that shadow to distinguish it from the rest

  4. #4
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default Re: Tooltip enter/leave event.

    I've done some further test.

    Looks like it's a Qt 4.4 snapshot bug.
    I'm going back to 4.3.3.

Similar Threads

  1. Qt widget enter/leave event
    By bunjee in forum Qt Programming
    Replies: 11
    Last Post: 28th April 2014, 03:09
  2. Hot to set the tooltip of button
    By santosh.kumar in forum Qt Programming
    Replies: 3
    Last Post: 1st November 2007, 12:07
  3. Replies: 1
    Last Post: 16th October 2007, 22:41
  4. 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
  5. Workload in a QThread blocks main application's event loop ?
    By 0xBulbizarre in forum Qt Programming
    Replies: 14
    Last Post: 9th April 2006, 21:55

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.