PDA

View Full Version : How to get row number from tableView



rogerholmes
26th March 2009, 14:52
when user moves to new position in tableView via mouse or keyboard how do you get the current row number ?


something like thisrow= (tableView->currentRow().toint); //
:)

spirit
26th March 2009, 14:59
try this


...
int row = tableView->currentIndex().row();
...

rogerholmes
26th March 2009, 16:30
Thank You Spirit, I tried every thing but that !!:o