[Qt-interest] Adding items in QTreeWidget in arbitrary order

Ville Ranki ext-ville.1.ranki at nokia.com
Wed Mar 17 13:15:05 CET 2010


Hello,

I can't figure out how to add items to a QTreeWidget in
the middle. Here's a code example:

http://pastebin.ca/1843464

As a result "Middle item" is added as last item, although
I'm trying to insert it to the middle (at index 1). Even
inserting item with index 0 results it being added in the end
of the list.

Any ideas?

Tested with Qt 4.5 on Ubuntu Jaunty.

-- 
Ville Ranki <ext-ville.1.ranki at nokia.com>
Symbio/Nokia




More information about the Qt-interest-old mailing list