Results 1 to 3 of 3

Thread: QWidget::leaveEvent

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 8 Times in 4 Posts

    Default QWidget::leaveEvent

    I want to capture the QWidget::leaveEvent so I have re-implemented this slot, but I do not know what signal to connect with it. What signal do I need to capture? Thanks for your help!

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

    Default Re: QWidget::leaveEvent

    leaveEvent is not a slot but an EVENT as its name clearly suggests.
    All you have to do is to add the code you would have added to that slot, in the event handler.

    Even more, you can emit a signal from this handler and connect your slot to it.

  3. The following user says thank you to marcel for this useful post:

    ToddAtWSU (15th October 2007)

  4. #3
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 8 Times in 4 Posts

    Default Re: QWidget::leaveEvent

    Thanks. I don't know what I was thinking. I was thinking I had always connected a close signal to the closeEvent slot, but I had done something differently...thanks!

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.