[PyKDE] More Newbie TreeView foolishness
Johannes Graumann
johannes_graumann at web.de
Fri Oct 6 09:05:15 BST 2006
> -----Ursprüngliche Nachricht-----
> Von: Dave Fancella <dave at davefancella.com>
> Gesendet: 06.10.06 09:36:26
> An: pykde at 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
More information about the PyQt
mailing list