[PyQt] pyqtMethodProxy

Phil Thompson phil at riverbankcomputing.com
Tue Jul 24 16:50:05 BST 2012

On Tue, 24 Jul 2012 14:26:31 +0200, Sebastian Elsner
<sebastianelsner at freenet.de> wrote:
> 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)

Why not treeview.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?

dataChanged() isn't a signal.


More information about the PyQt mailing list