(no subject)
Bernd Gehrmann
Bernd-Gehrmann at gmx.de
Sun Apr 28 17:48:04 UTC 2002
On Wednesday 24 April 2002 11:40, you wrote:
> I "new" a QListView and then add items into it,
> but i find that ,in the tree ,the item inserting later appears first ,that
> is ,the same level nodes'order is just the opposite! Anybody please help me
> to solve this problem?
QListViewItem has a constructor where you can specify the sibling after
which the item is inserted. Alternatively, you can use moveItem() to move
the item after insertion. The API behavior is not ideal (in particular, its
performance is O(n^2) for the usual case), but it's possible to work around
it.
Bernd.
More information about the KDevelop-devel
mailing list