[PyQt] [PyQt 4.5 Bug] Derived signals do not present

Phil Thompson phil at riverbankcomputing.com
Thu Apr 9 13:56:05 BST 2009


On Thu, 09 Apr 2009 13:15:24 +0700, Alexandr N Zamaraev <tonal at promsoft.ru>
wrote:
> Code for reproduce:
> [code=python]
> from PyQt4 import QtGui
> 
> sm = QtGui.QSortFilterProxyModel()
> sm.modelReset.conncet(lambda: None)
> [/code]
> Traceback (most recent call last):
>    File "C:\Lang\test\python\PyQtSignalBug\QtSortProxy.py", line 4, in 
> <module>
>      sm.modelReset.conncet(lambda: None)
> AttributeError: 'QSortFilterProxyModel' object has no attribute
> 'modelReset'
> 
> Signal modelReset has in QAbstractItemModel.
> 
> Os Windows Vista Home Ru + sp1
> g++ (GCC) 3.4.5 (mingw-vista special r3)
> Qt 4.5 (self build)
> sip-4.8-snapshot-20090401 (self build)
> PyQt-win-gpl-4.5-snapshot-20090328.zip (self build)

Should be fixed in tonight's PyQt snapshot - there was a whole group of
signals missing from the .sip file.

Phil


More information about the PyQt mailing list