[SOLVED]Problem while using 'itemFromIndex'.
-
I have a listWidget in my form and I decided using it's
on_listView_clicked(const QModelIndex &index)
signal.In the slot implementation I want to get the item clicked each time so since I have the item index I thought about using
QListWidgetItem * curItm = ui->listView->itemFromIndex(index);
But I get the error:
'itemFromIndex' is a protected member of 'QListWidget'
How can I use this particular function?
-
Hi,
Why not use the currentItemChanged signal ?