Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
@mandruk1331 What about http://doc.qt.io/qt-5.8/qwidget.html#closeEvent ?
@jsulm really sorry, I at the end of my code I forgot to add event->ignore() so it won't close the window(calls the destructors)