Hi, i'm trying here to display on my label_9 the number of the selected line of my table so i used this code
Capture.jpg

and the problem is that label_9 is not taking any number
Capture.PNG

i used also
Qt Code:
  1. int k = ui->tableView->currentIndex().row();
  2. ui->label_9->setNum(k)
To copy to clipboard, switch view to plain text mode 

and the lable is keep showing me -1 !