How I can property inherit that class? I done something like that:

Qt Code:
  1. class OptionalModel : public QAbstractItemView
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. OptionalModel(QWidget *parent = 0);
  7. ~OptionalModel();
  8.  
  9. QRect visualRect(const QModelIndex &index);
  10. void scrollTo(const QModelIndex &index, ScrollHint hint = EnsureVisible);
  11. QModelIndex indexAt(const QPoint &point);
  12. QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers);
  13. int horizontalOffset();
  14. int verticalOffset();
  15. bool isIndexHidden(const QModelIndex &index);
  16. void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command);
  17. QRegion visualRegionForSelection(const QItemSelection &selection);
  18.  
  19. private slots:
  20. void selectAll();
  21. };
To copy to clipboard, switch view to plain text mode 

Of cource its initalised in one .cpp file but I still get this error when compiling:
error C2259: 'OptionalModel' : cannot instantiate abstract class

What I must do to fix that ?