Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Every widget has a close() slot that returns true if the widget is successfully closed.
Qt has excellent documentation qt-project.org/doc/qt-4.8/qwidget.html#close.
First, look there, then in Google, then write a question. It's so simple)
And Qt, not QT.
Catch void MainWindow::closeEvent(QCloseEvent *event)
, set your status variable as needed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question