Hi, i am total newbie at QT, and i'm writing a chat-application, whose GUI hast a
QListView to show a list of Chat-Partners. Ich get a problem when i want to get the selected Item(supposed only one item can be selected) in the QListView: I've read int the QT4.7-DOC from nokia, but there are no such fuctions like firstChild(), sibling(),QListViewItemIterator(), which can be used to traverse the QListView. They have been there in old QT.

Here ist the relevant code:
in Chat.h:
QStandardItemModel* buddyIconModel; //buddyIconModel cotains the buddies model.
//in the Chat.ui file is a buddyList( inQListView ) defined.
in Chat.cpp:
buddyIconModel = new QStandardItemModel();
this->findChild<QListView*>("buddyList")->setModel(buddyIconModel) ;

supposed buddyIconModel has following dat
(net1, name1)
(net2, name2)
(net3, name3)

Now i try to write a slot to handle the clicked()-signal from the buddyList. I want to get the Name of the Selected Item. which function of QListView should i use? Ich have tried with the selectedIndexes(), but it is protected and the compiler reports error.