[PyQt] question about SIGNAL strings

Phil Thompson phil at riverbankcomputing.com
Tue Jul 6 17:54:43 BST 2010


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