how can i see the content of a directory?
-
I have a listview and I want to see the content of the directory, I wrote:
(_listView->model()->data(index.child())*/
but I have errors because I have many children and not only one, so how must I write?
-
Please reread your post and think about how anyone should help you with the information you provided...
-
@Christian-Ehrlicher I know but information are only these..I have some directories in a listview and I must analyze its content
-
@vale88 if I write:
QVariant data_child = _listView->model()->data(index.child());
I have problems because I have more children
-
Hi,
What problem is that ?
What analysis do you want to make ?
At what level ?
On what kind of filesystem ? -
@SGaist to see children I wrote:
int numero_children = _listView->children().count(); QList<QString> list; for (int i=0; i<numero_children; i++) { QVariant data_child = _listView->model()->data(index.child(i,0)); list.insert(i,data_child.toString()); } but data_child results empty but I have children
-
@vale88 inside the dir I have:
but I see seven children because I see also children inside dir Nuova Cartella, but if I want to see only these four children how must I write?
-
So you are using a QFileSystemModel ?