locus
29th January 2007, 20:19
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
void derived_class::derived_class_slot()
{
QModelIndex index;
index = view->selectedIndexes().first();
......
}
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.
(QModelIndexList selectedIndexes () const) from a slot in the derived class using
void derived_class::derived_class_slot()
{
QModelIndex index;
index = view->selectedIndexes().first();
......
}
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.