Hi
Im having some problems with displaying a directory and its files in a QTreeView, im using QFileSystemModel and i keep getting a directory listing that looks like this

/
/tmp
somefile
+opt
+root
+sys
someotherfile

etc, etc, all i want to be displayed is the /tmp directory and its files. Im trying to make it so the user cant navigate anywhere else but the /tmp directoy. Here is the way im doing it now which keeps giving me all the files under /


QString Location("/tmp/delete");
m_FsModel = new QFileSystemModel();
m_FsModel->setRootPath(Location);

QDir* dir = new QDir(Location);
m_FsModel->setRootPath(dir->path());
m_FsModel->setReadOnly(true);

thanks