Do you understand why this is needed?  In the documentation it specifies it for the case of a subclass: http://harmattan-dev.nokia.com/docs/platform-api-reference/xml/daily-docs/libqt4/qabstractitemmodel.html#beginInsertRows

however if it works, then i can't knock it.