Well i implement the abstracts metods and now gcc don't say
"cannot allocate and object of type 'ColorButton' in the line 5
because the following virtual functions are abstracts"
but say :
In copy constructor `ColorButton::ColorButton(const ColorButton&)':
D:/Qt/4.1.2/include/QtGui/../../src/gui/widgets/qabstractbutton.h:139:
error: `QAbstractButton::QAbstractButton(const QAbstractButton&)' is private
error: within this context
In member function `ColorButton& ColorButton:perator=(const ColorButton&)':
D:/Qt/4.1.2/include/QtGui/../../src/gui/widgets/qabstractbutton.h:139:
error: `QAbstractButton& QAbstractButton:perator=(const QAbstractButton&)' is private
error: within this context
in the line
Button[i] = ColorButton(this,x+(i*21),y+(j*21),21,21);
don´t work if i put Button[i] = new ColorButton(this,x+(i*21),y+(j*21),21,21);
Help me please




perator=(const ColorButton&)':
Reply With Quote

Bookmarks