Hello,

I have reimplemented the resizeEvent in a subclass (of the QMainWindow) to receive widget resize events which are passed in the event parameter. The method is not getting called. Any ideas why?

The closeEvent method is also not being called.

Qt Code:
  1. class cMainWindow : public QMainWindow, public Ui::cMainWindow
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. void setupUi(QMainWindow * mainWindow);
  7.  
  8. ...
  9.  
  10. protected:
  11. void resizeEvent(QResizeEvent * event)
  12. { qDebug("Got called!!!"); }
  13. void closeEvent(QCloseEvent * event)
  14. { qDebug("Got called!!!"); }
  15.  
  16. };
To copy to clipboard, switch view to plain text mode