[Qt-interest] QTreeWidgetItemIterator weird behaviour

Cristiano Leorato cristiano.leorato at yahoo.com
Mon Oct 19 15:44:36 CEST 2009


by "visit of its children" I meant the traversal of the associated subtrees, of course.

--- On Mon, 10/19/09, Cristiano Leorato <cristiano.leorato at yahoo.com> wrote:

> From: Cristiano Leorato <cristiano.leorato at yahoo.com>
> Subject: Re: [Qt-interest] QTreeWidgetItemIterator weird behaviour
> To: qt-interest at trolltech.com
> Date: Monday, October 19, 2009, 3:40 PM
> 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