[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] More info needed on QAbstractTableModel
From:       Ian <hobson42 () gmail ! com>
Date:       2010-11-28 16:50:37
Message-ID: 4CF2885D.2020601 () gmail ! com
[Download RAW message or body]

Hi,

First - thanks to Andreas and Baz for previous help.

What I need to do now is sort the rows - keeping the selected row selected.

Currently if I sort, when row 6 is selected, after the sort, the new row 
6 is selected. I want to have the selection move with the sorting.

I have found the currentIndex and used it to save the ID of the selected 
row, before the sort, and it is easy to find the index of this row after 
the sort.

How can I set the selected row to this row?

Thanks

Ian
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic