[PyKDE] MVC Question

David Boddie david at boddie.org.uk
Fri Oct 6 23:12:31 BST 2006


On Friday 06 October 2006 21:19:27 +0200, Andreas Pakulat wrote:
> On 06.10.06 10:14:17, Matt Chambers wrote:
> > Thanks, that works but then then any branches you have open in the tree
> > view closed.   I guess there is no way to maintain
> > the open/close status of existing branches, and default new ones to open?
>
> Hmm, there's API to set the status of a given model index to expanded
> (in QTreeView), you'd have to store the indexes that are expanded.

You might find that the layoutChanged() signal can be used to indicate that
the structure of the model has changed without causing open branches to be
closed.

David




More information about the PyQt mailing list