jano_alex_es
14th May 2009, 10:52
Hi,
I'd like to know how many rows/columns my qTableView has.
I was trying something like:
QAbstractItemModel* tableModel= my_table->model();
QModelIndex index = my_table->currentIndex();
int iRows = tableModel->rowCount(index);
But it doesn't work
How I can do it? thanks!
I'd like to know how many rows/columns my qTableView has.
I was trying something like:
QAbstractItemModel* tableModel= my_table->model();
QModelIndex index = my_table->currentIndex();
int iRows = tableModel->rowCount(index);
But it doesn't work
How I can do it? thanks!