PDA

View Full Version : puzzle about change QModelIndex's position?



Raul
27th October 2010, 03:30
Hi!
If someone can tell me how to change QModelIndex's index position?:confused:

aamer4yu
27th October 2010, 07:17
Can you explain a bit more ?

Raul
27th October 2010, 08:08
Can you explain a bit more ?
It is that the QModelIndex object index is pointing to the last one of the listView.and i want to repoint to first one.how can i implement it?If you have understanded?

Gooler
27th October 2010, 09:54
This will help you http://doc.qt.nokia.com/4.7/qabstractitemview.html#setCurrentIndex
It's a QListView method inherited from qabstractitemview