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:
void derived_class::derived_class_slot() { QModelIndex index; index = view->selectedIndexes().first(); ...... }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.
Bookmarks