QSFPM triggers this assert by calling index() during begin/endInsertRows.

Still needs to be investigated.
Crude integration of the widget inspector.
Temporary fix for usage on the client side.