私はスクリーンクラスを持っています
class Screen : public QLayout
{
public:
Screen();
~Screen();
void paintEvent(QPaintEvent *e);
};
オブジェクトを作成しているときに、純粋な抽象クラスのオブジェクトを作成できないというエラーが発生しました。QLayoput は純粋な抽象であるため、 QLayout を継承するクラスのオブジェクトを作成するにはどうすればよいですか?
定義:
Screen::Screen( )
{
}
Screen::~Screen()
{
delete this ;
//Screen(new QSize (100,100));
}
void Screen::paintEvent(QPaintEvent *e)
{
}