Hello:<div> At work, we've got pyqt 4.7.3 installed on our linux boxes. While trying to subclass a QAbstractItemModel, I've found that it doesn't seem to have a beginMoveRows or endMoveRows. Here is some terminal output:</div>
<div><br></div><div><div>>>> QtCore.PYQT_VERSION_STR</div><div>'4.7.3'</div></div><div><div>>>> QtCore.QAbstractItemModel.beginMoveRows</div><div>Traceback (most recent call last):</div><div> File "<stdin>", line 1, in <module></div>
<div>AttributeError: type object 'QAbstractItemModel' has no attribute 'beginMoveRows'</div><div>>>> </div></div><div><br></div><div>The docs I have say it was added in version 4.6 but for some reason I can't find it here at work. If I need to reimplement this functions, is it basically:</div>
<div><br></div><div>self.emit(QtCore.SIGNAL("layoutAboutToBeChanged()"))</div><div>#change internal list of data</div><div>#do something with changePersistentIndex</div><div>self.emit(QtCore.SIGNAL("layoutChanged()"))</div>
<div><br></div><div>?</div><div><br></div><div>What exactly do I need to do with changePersistentIndex?</div><div>Thank you!</div><div><br></div><div>Jake</div><div><br></div>