Hi, I'm using a QDirModel with a treeview to implement a windows explorer-like interface. I'd like to be able to also add directories for Desktop and MyDocuments (or equivalent) in the parent directory, where it shows the hard drives.

I'm totally new to using a model/view type interface. Can someone point me in the right direction to be able to do this?

Just to test, I hard coded myDirModel->index("desktopfilepath") and then use the returned QModelIndex to create a new directory by calling myDirModel->mkdir(returnedIndex, "name"); This did not work, however. What am I doing wrong?

Thanks, Daniel