class Cell : QTableWidgetItem{public: Cell(); QTableWidgetItem* clone() const;};Cell::Cell(){ cout << "In Cell Constr" << endl;}QTableWidgetItem* Cell::clone() const{ return new Cell(*this);}
return new Cell(*this);