View Full Version : override close button

5th July 2014, 20:40
Hi -

I am using mdiarea and qmdisubwindows for my application. My question is - I want to override the function called whenever the "X" in the title bar is clicked.

I tried overloading QWidget::close() but no luck.

Any help appreciated.

5th July 2014, 22:10
QWidget::close() is not a virtual method. Try reimplementing QWidget::closeEvent();