hgedek
17th August 2007, 09:03
class ImenuPage:public QGraphicsView,public IBasePage
{
}
IBasePage is an abstract class and inherits from QWidget.
ImenuPage::ImenuPage(EditorPage *_editor,QWidget *parent)
:QGraphicsView(parent),IBasePage(_editor)
{
scene=new QGraphicsScene;
scene->setSceneRect(230, 100, 560, 320);
setScene(scene);
}
class IBasePage:public QWidget
{
}
When I didnt use IBasePage I can create a scene and show images.But If I use above codes there is nothing.Why?
{
}
IBasePage is an abstract class and inherits from QWidget.
ImenuPage::ImenuPage(EditorPage *_editor,QWidget *parent)
:QGraphicsView(parent),IBasePage(_editor)
{
scene=new QGraphicsScene;
scene->setSceneRect(230, 100, 560, 320);
setScene(scene);
}
class IBasePage:public QWidget
{
}
When I didnt use IBasePage I can create a scene and show images.But If I use above codes there is nothing.Why?