class CSDesignLibTreeView : public QTreeView
{
Q_OBJECT
public:
void slot_DeleteFolder();

};
void CSDesignLibTreeView::slot_DeleteFolder()
{
QFileSystemModel *filemodel = qobject_cast<QFileSystemModel *> (model());
filemodel->remove(currentIndex());
}



Please check the above snippet I am removing one index from
QFileSystemModel. The item is deleted but my treeview is not updating it
immediatly, if I click on some other item then I can see it's deleted.
Please tell me how i can update it immediately when it deleted.

-- 
Thanks & Regards
Sujan
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to