<div>when I run the code here </div><div>http://codepad.org/ubtleeFG</div><div>the following error happened </div><div><div>>>> </div><div>Traceback (most recent call last):</div><div>  File "E:\g.py", line 22, in timerHit</div><div>    self.dataChanged.emit (topLeft, topLeft);    </div><div>TypeError: QAbstractItemModel.dataChanged[QModelIndex, QModelIndex, list-of-int] signal has 3 argument(s) but 2 provided</div></div><div><br></div><div>the cause is that the 3rd parameter of <h3 class="fn"><span class="type">void</span> QAbstractItemModel::<span class="name"><font style="BACKGROUND-COLOR: #446ef8" color="#ffffff">dataChanged</font></span>(const 
<span class="type"><a href="">QModelIndex</a></span> &<i> 
topLeft</i>, const <span class="type"><a href="">QModelIndex</a></span> &<i> bottomRight</i>, const 
<span class="type"><a href="">QVector</a></span><<span class="type">int</span>> &<i> roles</i> = QVector<int> ())<tt> 
[signal]</tt></h3> is optional,while in PyQt5 it seems not .</div>