I have a subclass of
QAbstractTableModel which correctly calls
setData() but does not call
Since it is correctly calling
setData(), I presume the initialization should be correct for the
QAbstractTableModel as a parent class of the object. I’m also using PyCharm, and it correctly shows an icon indicating which methods are being overridden.
I have another class with
QAbstractTableModel as a parent class and it operates correctly. Debugging print statements flood the console in moving the mouse. So I presume something is up with the implementation of the other class.
The primary difference between the working/non-working classes is that the non-working class has multiple inheritance, defined as
class A( B, QAbstractTableModel )
The other class has single inheritance as
class C( QAbstractTableModel )
Since PyCharm seems to parse and identify overridden methods correctly and since the data() and
setData() are working, I presume that initialization of the parent classes of A are correct.
Any suggestions on debugging would be appreciated.