Hi
I'm trying using QListView to filebrowsing.
Qt Code:
  1. QDirModel *model = new QDirModel;
  2. list = new QListView(centralwidget); //QListView *list;
  3. list->setGeometry(QRect(250 , 250 , 250 , 250));
  4. list->setModel(model);
  5. list->setRootIndex(model->index(QDir::homePath()));
  6. QListView::connect(list , SIGNAL(pressed(QModelIndex)) , list , SLOT(setRootIndex(QModelIndex)));
To copy to clipboard, switch view to plain text mode 
I'm trying to make a function to turn back previous directory.
Does anyone have a hint or solution ?