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
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
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).
sathees (15th May 2014)
Bookmarks