Use begin/endResetModel() to do the reset
Merge pull request #381 from TNick/Qt5_beginResetModel

Use begin/endResetModel() to do the reset