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);
emit this->weekCalendar->cellClicked(1, 2);
To copy to clipboard, switch view to plain text mode
But I get an error:
'void QTableWidget::cellClicked(int, int)' is protected
'void QTableWidget::cellClicked(int, int)' is protected
To copy to clipboard, switch view to plain text mode
Is there any other way to select a cell?
NVM, Solved this using setCurrentCell, sorz for disturbance.
Bookmarks