Results 1 to 3 of 3

Thread: QWidget::leaveEvent

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

    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
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    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
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

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