PDA

View Full Version : Signal for when a QWidget is given setFocus()



rakkar
26th August 2009, 01:57
I want an event to occur when a user gives a dialog window focus (QWidget::setFocus). Is there such a signal? I tried activated() and triggered() but neither did it

nish
26th August 2009, 02:14
reimplement void QWidget::focusInEvent ( QFocusEvent (http://www.qtcentre.org/forum/qfocusevent.html) * event ) and emit your custom signal from there.

rakkar
26th August 2009, 03:18
Thanks, you're awesome.

nish
26th August 2009, 06:44
Thanks, you're awesome.
i know:D:p... thx for reminding me:)