"Unselect" current item in ListView
-
I would like to "unselect" the current item in a ListView, for example, after the creation of the ListView or when the ListView loses its focus. If I set currentIndex < 0 the ListView selects (highlights) the first item, but if I set currentIndex >= count it "unselects" the selected item (removes the highlight).
Is this really the correct behavior for the ListView (the docs say nothing about it)?
-
Hi,
That doesn't sound like intended behavior to me. Could you please raise a bug in the "bugtracker":http://bugreports.qt.nokia.com? ListView should probably also provide a clearSelection() function or something similar.
Regards,
Michael