[Interest] delete effect not immediate QFileSystemModel
Sujan Dasmahapatra
sujan.dasmahapatra at gmail.com
Fri May 31 07:36:02 CEST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130531/2f438525/attachment.html>
More information about the Interest
mailing list