I am trying to list a directory using QTreeView, but I would like to include the root in the tree (but no other files from the same level as root). In other words, assuming I am user hovercraft, what I get with
Qt Code:
  1. QDirModel model;
  2. QTreeView tree;
  3. tree.setModel(&model);
  4. tree.setRootIndex(model.index(QDir::homePath()));
To copy to clipboard, switch view to plain text mode 
is:

-bar
-baz
--naz
--naznaz
--naznaznaz
---todd-is-god
-boz
-foo


What I want is:

-hovercraft
--bar
--baz
---naz
---naznaz
---naznaznaz
----todd-is-god
--boz
--foo


Is there a nobrainer way to do this?

-M