PDA

View Full Version : override close button



yapatel
5th July 2014, 19: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.

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