Hi,
I try to use a QDirModel and a QListView to display bitmap Images in directories.
After defining my QDirModel, I defined my QListView to display images like this :
listView->setModel(model);
listView->setRootIndex(model->index("C:\\"));
listView->setModel(model);
listView->setRootIndex(model->index("C:\\"));
To copy to clipboard, switch view to plain text mode
But when I tried to do the same thing to change my directory
listView->setRootIndex(model->index("C:\\OtherDirectory"));
listView->setRootIndex(model->index("C:\\OtherDirectory"));
To copy to clipboard, switch view to plain text mode
onto a function, it doesn't work.
Anything wrong ?
thanks
Bruno
Bookmarks