Archa4
9th May 2011, 07:47
I created a widget, which has a QTableWidget in it. That QTableWidget has 2 rows and 7 columns. When the app is loaded I need to activate a specific cell (say 2-nd row, 3-rd column). How can I activate it? I tried:
emit this->weekCalendar->cellClicked(1, 2);
But I get an error:
'void QTableWidget::cellClicked(int, int)' is protected
Is there any other way to select a cell?
NVM, Solved this using setCurrentCell, sorz for disturbance.
emit this->weekCalendar->cellClicked(1, 2);
But I get an error:
'void QTableWidget::cellClicked(int, int)' is protected
Is there any other way to select a cell?
NVM, Solved this using setCurrentCell, sorz for disturbance.