[PyQt] [PyQt5 BUG] the 3rd parameter of QAbstractItemModel::dataChanged() is optional

iMath 2281570025 at qq.com
Fri Dec 20 04:46:04 GMT 2013


when I run the code here 
http://codepad.org/ubtleeFG
the following error happened 
>>> 
Traceback (most recent call last):
  File "E:\g.py", line 22, in timerHit
    self.dataChanged.emit (topLeft, topLeft);    
TypeError: QAbstractItemModel.dataChanged[QModelIndex, QModelIndex, list-of-int] signal has 3 argument(s) but 2 provided



the cause is that the 3rd parameter of 
void QAbstractItemModel::dataChanged(const  QModelIndex &  topLeft, const QModelIndex & bottomRight, const  QVector<int> & roles = QVector<int> ())  [signal]
 is optional,while in PyQt5 it seems not .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20131220/2b72ab6f/attachment.html>


More information about the PyQt mailing list