PDA

View Full Version : how to get signal (Qt:: popup )



sathees
14th May 2014, 11:24
hai,
i need to get initimation when the widget get closed.

i am using Qt:: popup widget, using Alt+f4 the widget get closed.

so i need any signal when the widget get closed.

plese aswer me !

thanks

stampede
14th May 2014, 12:01
There is no such signal in QWidget class, so you have to reimplement closeEvent and emit a custom signal from there, or install event filter on the popup window and check for QEvent::Close. Alternatively, you can connect to "destroyed" signal, but it is emitted only when the object is deleted (if the popup has Qt::WA_DeleteOnClose flag, it will be deleted after it accepts closeEvent).