On Friday 31 May 2013 07:36:02 Sujan Dasmahapatra wrote: > I am deleting one item from QFileSystemModel but it's not updated > immediately, when I click on other item then I can see that it's deleted > from the model. > > QFileSystemModel *model = new QFileSystemModel; > model->setRootPath(QDir::currentPath()); > QTreeView *tree = new QTreeView(this); > tree->setmodel(model) > tree->setRootIndex(model->setRootPath(QDir::currentPath())); > > model->rmDir(tree->currentIndex()); > > /////////////////////////////////////////////////////////////////////////// > ////////////////////////////// This deletes the item but effect is not > coming immediately. Please tell me what could be the problem. Any help is > highly appreciated. This actually *deletes* all files contained in that folder (before the folder itself can be deleted), and this takes a little while...
HTH, René
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest