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.
-- 
Thanks & Regards
Sujan
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to