[Qt-interest] [QModelIndex/QAbstractItemView] sorted/not sorted ?
St.Vogelsang at gmx.de
St.Vogelsang at gmx.de
Thu Dec 3 14:57:50 CET 2009
Hello,
According to the documentation:
http://qt.nokia.com/doc/4.5/qabstractitemview.html#selectedIndexes
QModelIndexList QAbstractItemView::selectedIndexes () const;
provides a _not_ sorted list.
Since I really need a sorted one, I implemented a sort algorithm.
But my debug-code shows always a already sorted List. So I'm interested in understanding when (maybe memory allocation) or on which other circumstances the list gets unsorted.
Or is it a documentation bug?
Any hint is appreciated.
Stefan
--
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02
More information about the Qt-interest-old
mailing list