PDA

View Full Version : QWidget::leaveEvent



ToddAtWSU
15th October 2007, 15:24
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!

marcel
15th October 2007, 16:56
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.

ToddAtWSU
15th October 2007, 17:28
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!