Hi
I'm trying using QListView to filebrowsing.
list
= new QListView(centralwidget
);
//QListView *list;list
->setGeometry
(QRect(250 ,
250 ,
250 ,
250));
list->setModel(model);
list
->setRootIndex
(model
->index
(QDir::homePath()));
QDirModel *model = new QDirModel;
list = new QListView(centralwidget); //QListView *list;
list->setGeometry(QRect(250 , 250 , 250 , 250));
list->setModel(model);
list->setRootIndex(model->index(QDir::homePath()));
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 ?
Bookmarks