1111
20th February 2009, 09:17
Hello all,
I have main window and I would like to create my own status bar for this window. So the obvious way of doing it is to subclass QStatusBar and create my own class base on that.
So I have a simple class
class MyStatusBar : public QStatusBar
{
// constructor and destructor here
};
Then in MyMainWindow constructor I set status bar like this
this->setStatusBar(myStatusBar);
However, if I start application I get following error
undefined symbol: _ZN10QStatusBar9showEventEP10QShowEvent
My question is :)
Is it possible to subclass QStatusBar? There is nothing about it in Qt manuals. If yes, should I implement some virtual functions, because it looks like application cannot find function body (or maybe I'm wrong).
I have main window and I would like to create my own status bar for this window. So the obvious way of doing it is to subclass QStatusBar and create my own class base on that.
So I have a simple class
class MyStatusBar : public QStatusBar
{
// constructor and destructor here
};
Then in MyMainWindow constructor I set status bar like this
this->setStatusBar(myStatusBar);
However, if I start application I get following error
undefined symbol: _ZN10QStatusBar9showEventEP10QShowEvent
My question is :)
Is it possible to subclass QStatusBar? There is nothing about it in Qt manuals. If yes, should I implement some virtual functions, because it looks like application cannot find function body (or maybe I'm wrong).