[PyQt] pyqtMethodProxy

Sebastian Elsner sebastianelsner at freenet.de
Tue Jul 24 13:26:31 BST 2012


Hello,

I was trying to connect the dataChanged signal of a QTableView instance 
the "new style way" via its string name and __getattr__ like so:

treeview.__getattr__("dataChanged").connect(someSlot)

Instead of getting a bound signal (like I do with a ComboBox for 
example), I am getting a pyqtMethodProxy, which does not have a connect 
attribute. I can't find anything on the internet about this. Is there a 
way to get the actual signal?

Cheers

Sebastian


More information about the PyQt mailing list