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!!!"); }
};
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!!!"); }
};