MainWindow of my Qt application has QTabWidget, where each tab is a QTableWidget. I need to get access to the selected cell of a current table (with currentRow()
and currentColumn()
). But when I'm taking pointer to the table with ui->tabWidget->currentWidget()
result is QWidget* so for it methods like currentRow()
don't exist.
Is there any way to determine that all pages of QTabWidget are members of QTableWidget class?