Quote Originally Posted by jasonjoy View Post
but how can i delete it from associated model? Is there any ready-to-use function?
Yes !!
For example you are using QDirModel, so you can use:
Qt Code:
  1. bool QDirModel::remove ( const QModelIndex & index )
To copy to clipboard, switch view to plain text mode