totosugito
30th January 2008, 03:09
Dear,
I want make treeview like explorer.
I use this script :
QDirModel *model=new QDirModel;
treeView->setModel(model);
treeView->setRootIndex(model->index(QDir::currentPath()));
this script show all file and folder in currentpath.
my question are :
1. how to make treeView show all file not file and folder.
2. when i click file in treeview, i want statusbar show path and filename. I have path, but how to know name of file in current index.
3. i want to make treeview can rename and delete file. how to solve this program.
thank you. please help me.
regardly
toto
I want make treeview like explorer.
I use this script :
QDirModel *model=new QDirModel;
treeView->setModel(model);
treeView->setRootIndex(model->index(QDir::currentPath()));
this script show all file and folder in currentpath.
my question are :
1. how to make treeView show all file not file and folder.
2. when i click file in treeview, i want statusbar show path and filename. I have path, but how to know name of file in current index.
3. i want to make treeview can rename and delete file. how to solve this program.
thank you. please help me.
regardly
toto