PDA

View Full Version : QListView. Unselect item.



Chiz
17th January 2011, 13:35
I have QListView widget. It have some items.
When I click on an item I show details about this item. Everything is good so far.
If I click another item, details of clicked element is shown. Everything is perfect so far.
For such behavior I use clicked(QModelIndex) signal in QListView.
Question: how to UNSELECT item? I want to click on empty area of QListView and hide details. Problem is that signal clicked(QModelIndex) is not invoked/called.