Hello,

I have a problem, I have a ListView that displays a list of items of a directory.
is there a way to copy selected item's text or path into a var using QListViewItem.

e.x
QListView:

item1
item2
item3

user selects item2 and then clicks a button, then item's text "item2" or item's path (e.x "/usr/bin/item2") is saved into a QString var.

is there a way to do that?
thank you, and sorry for my poor english.