[Qt-interest] QTreeWidgetItemIterator weird behaviour

R. Reucher rene.reucher at batcom-it.net
Mon Oct 19 14:00:02 CEST 2009


On Mon, 19 Oct 2009 11:51:23 +0200, NARCISO, Rui wrote:
> Is a QTreeWidgetItemIterator supposed to go trhough the items on a
> QTreeWidget by any specific order or is it completely random?
I'm not completely sure about the order it uses to iterate over top-level 
items, but the docs state the following, which basically means that it 
traverses the tree:

"The iterator will walk the items in a pre-order traversal order, thus 
visiting the parent node before it continues to the child nodes."
(http://qt.nokia.com/doc/4.5/qtreewidgetitemiterator.html#details)

So the question is, what does "pre-order traversal order" exactly mean?

HTH, René
-- 
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/

"He is now rising from affluence to poverty."
		-- Mark Twain



More information about the Qt-interest-old mailing list