Hi all,

I've subclassed QAbstractItemModel and overloaded reset to be:

    def reset(self):
        self.modelAboutToBeReset.emit()
        self._loadPeople()
        self.modelReset.emit()

and I get errors pertaining to missing attributes modelAboutToBeReset
and modelReset. Do I have something wrong with the new syntax for
emitting signals or is this a known thing or a bug? I'm using latest
snapshots of sip and pyqt.

The pre-4.5 version of the code works fine:

    def reset(self):
        self.emit(QtCore.SIGNAL('modelAboutToBeReset()'))
        self._loadPeople()
        self.emit(QtCore.SIGNAL('modelReset()'))

Many thanks,
Patrick
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to