Quote Originally Posted by MarkoSan View Post
And how to delete item from model (from tableview) if necessary.
Use QAbstractItemModel::removeRows(), or if you're using QStandardItems I believe you can simply delete them.

I do not know how to get index (row) of selected item.