I have a tableview in a form which i have subclassed. The form contains a qtableview and i am trying to access one the view's protected member functions
(QModelIndexList selectedIndexes () const) from a slot in the derived class using

Qt Code:
  1. void derived_class::derived_class_slot()
  2. {
  3. QModelIndex index;
  4. index = view->selectedIndexes().first();
  5. ......
  6. }
To copy to clipboard, switch view to plain text mode 

but i'm getting the following error:

error C2248: 'QTableView::selectedIndexes' : cannot access protected member declared in class 'QTableView'

how can i access this function?

thanks for your attention.