Aceed to an element of listView
-
I must aceed to the first element of the list:
I tried :
ui->listView->setCurrentIndex(0);
but it doesn't want int -
I must aceed to the first element of the list:
I tried :
ui->listView->setCurrentIndex(0);
but it doesn't want int -
@VRonin I want to obtain the name of the first element of listView
-
@VRonin said in Aceed to an element of listView:
ui->listView->model()->index(0,0).data();
It said to me "invalid"
-
@VRonin said in Aceed to an element of listView:
ui->listView->model()->index(0,0).data();
It said to me "invalid"
-
@mrjj no I call this after
-
@mrjj no I call this after
@vale88 I solved thanks
-
@vale88 I solved thanks