[PyQt] question about SIGNAL strings

Zoltan Szalai flc at freemail.hu
Wed Jul 7 07:43:06 BST 2010


thx for the answer, Phil !


Phil Thompson wrote:
> On Mon, 05 Jul 2010 21:36:02 +0200, Zoltan Szalai <flc at freemail.hu> wrote:
>   
>> hello,
>>
>> running the attached code snippet the result is as follows:
>> 2destroyed(QObject*)
>> 2aSignal()
>>
>> i'd like to ask what are those '2'-s at the start of the strings for?
>> the result is the same if i'd just print out SIGNAL('aSignal()').
>> probably a stupid question but i'd like to understand how things work.
>>     
>
> They tell Qt that the rest of the string refers to a signal (rather than
> '1' for a slot).
>
> Phil
>   



More information about the PyQt mailing list