Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, June 2007
QStandardItemModel and sortChildren


Message 1 in thread

Hi, I'm new to the list. Trying to track down this Qt problem.  I have 
Qt 4.2.2 and I'm using a QtreeView and a QStandardItemModel.  In the 
model, I'm reimplementing sort() to sort the root item's children the 
same way all the time, then I loop through the root's children and sort 
those children a different way and by a different column.

When this happens and some rows are selected, column 0 of the selection 
highlight moves to another row, while col 1 to col N stay on the 
originally selected row.  When this happens, the selectionmodel doesn't 
consider either row selected.

Anyone ever heard of this before?  I googled around for a while, 
couldn't find anyway.

-Matt




--
 [ signature omitted ]