Hi All,

Thanks for yr reply.
But I still not slove this problem.
I cannot used QDirModel approach because i have done enough code without it and can not change my approach.

Actually problem is that when I clear the tree it give me the error

QTreeModel->hasChildren() on MouseDoubleClickEvent.

So i want to ask is there any other alternative from which I can do this.