Choosing another default item in the list
When we first create a Listview, the default selected Item is the first one. How can I manage to have another Item selected by default or no Item at all ?
I am feeling like weird... all my questions remain unsolved.
QListView inhertis from QAbstractItemView, which has selectionModel(). In it there is _clearSelection() _method.
So this should do:
Note: I haven't tested the code.
I think this link can help you "Handling Selections in Item Views":http://doc.qt.digia.com/4.4/model-view-selection.html
Thanks & Regards..
[quote author="Jacques" date="1351597709"]I am feeling like weird... all my questions remain unsolved.[/quote]
Be patient. Everyone will not respond immediately... :-)
Thank you all. I'll read it.