[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] More Newbie TreeView foolishness
From: Johannes Graumann <johannes_graumann () web ! de>
Date: 2006-10-06 8:05:15
Message-ID: 1236347493 () web ! de
[Download RAW message or body]
> -----Ursprüngliche Nachricht-----
> Von: Dave Fancella <dave@davefancella.com>
> Gesendet: 06.10.06 09:36:26
> An: pykde@mats.imk.fraunhofer.de
> Betreff: Re: [PyKDE] More Newbie TreeView foolishness
> On Friday 06 October 2006 2:27 am, Johannes Graumann wrote:
> > Hello,
> >
> > In my qt4-designer designer derived *.ui, I have a QTreeView defined, which
> > is called 'RepositoryTree'. I try to now populate that using QDirModel, but
> > am failing. What Am I doing wrong? Thanks for any hints,
>
> Do you need something like this?
>
> tree->setRootIndex(model->index(QDir::currentPath()));
>
> (haven't used any of the stock models yet, sorry)
>
> Dave
According to the documentation the root index defaults to '/' (on linux).
Joh
_______________________________________________________________________
Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos.
Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=022222
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic