[Qt-interest] QTreeWidgetItemIterator weird behaviour
Cristiano Leorato
cristiano.leorato at yahoo.com
Mon Oct 19 15:40:50 CEST 2009
I have experienced that the iterator really gives a "standard" preorder (or depth-first) traversal, where the visit of a node (e.g.: twi) is followed by the visit of its children from left (twi->child(0)) to rigth (twi->child(childCount()-1).
I assume this is always the case.
Cristiano
--- On Mon, 10/19/09, R. Reucher <rene.reucher at batcom-it.net> wrote:
> From: R. Reucher <rene.reucher at batcom-it.net>
> Subject: Re: [Qt-interest] QTreeWidgetItemIterator weird behaviour
> To: qt-interest at trolltech.com
> Date: Monday, October 19, 2009, 2:42 PM
> On Mon, 19 Oct 2009 14:03:34 +0200,
> NARCISO, Rui wrote:
> > I had read in the doc and I understand the order
> parent-> child. The
> > question is, what is the order on all of the children
> of a given parent
> Well, thinking about it again, I'd say that "pre-order
> traversal order"
> simply means "in the order you've inserted the items". But
> that's just
> how I understand from the statement in the docs...
>
> HTH, René
> --
> René Reucher
> rene.reucher at batcom-it.net
> http://www.batcom-it.net/
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list