[Interest] delete effect not immediate QFileSystemModel

R. Reucher rene.reucher at batcom-it.net
Fri May 31 16:24:49 CEST 2013

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é
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130531/70c5c95a/attachment.html>

More information about the Interest mailing list