[PyQt] New style signals question

Phil Thompson phil at riverbankcomputing.com
Wed Aug 4 20:25:12 BST 2010


On Wed, 04 Aug 2010 20:20:11 +0100, Baz Walter <bazwal at ftml.net> wrote:
> On 04/08/10 20:07, Phil Thompson wrote:
>> Specific overloads are obtained by indexing the bound signal with the
>> signature you want, so...
>>
>> act.triggered[()].connect(self.myslot)
> 
> can you explain why i see errors like this when using that syntax:
> 
>    File "menusys.py", line 1522, in __init__
>      self.triggered[()].connect(handler)
> TypeError: focusNextChild() has no overload that is compatible with 
> triggered()

That exception message makes no sense in that context. Do you have a test
case?

> the old style would simply throw away any excess arguments.

That should still happen.

Phil


More information about the PyQt mailing list