PDA

View Full Version : QMainWindow not receiving QResizeEvent



brcain
28th September 2006, 02:53
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.


class cMainWindow : public QMainWindow, public Ui::cMainWindow
{
Q_OBJECT

public:
void setupUi(QMainWindow * mainWindow);

...

protected:
void resizeEvent(QResizeEvent * event)
{ qDebug("Got called!!!"); }
void closeEvent(QCloseEvent * event)
{ qDebug("Got called!!!"); }

};

wysota
28th September 2006, 07:11
Can you provide a minimal compilable example which reproduces the problem?