Hi,
I'd like to know how many rows/columns my qTableView has.
I was trying something like:
Code:
int iRows = tableModel->rowCount(index);
But it doesn't work
How I can do it? thanks!
Printable View
Hi,
I'd like to know how many rows/columns my qTableView has.
I was trying something like:
Code:
int iRows = tableModel->rowCount(index);
But it doesn't work
How I can do it? thanks!
try this
e.g. don't specify a parent.Code:
int iRows = tableModel->rowCount(); int iCols = tableModel->columCount();
hehehe, it was so easy... :P
don't know why, I was obfuscated with its parent.
thanks!