Hi,
I'd like to know how many rows/columns my qTableView has.
I was trying something like:
Qt Code:
int iRows = tableModel->rowCount(index);To copy to clipboard, switch view to plain text mode
But it doesn't work
How I can do it? thanks!
Hi,
I'd like to know how many rows/columns my qTableView has.
I was trying something like:
Qt Code:
int iRows = tableModel->rowCount(index);To copy to clipboard, switch view to plain text mode
But it doesn't work
How I can do it? thanks!
Last edited by jano_alex_es; 14th May 2009 at 11:10. Reason: Solved
try this
e.g. don't specify a parent.Qt Code:
int iRows = tableModel->rowCount(); int iCols = tableModel->columCount();To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
jano_alex_es (14th May 2009)
hehehe, it was so easy... :P
don't know why, I was obfuscated with its parent.
thanks!
Bookmarks