[PyQt] QCheckBox problem

Phil Thompson phil at riverbankcomputing.com
Mon Jan 5 18:57:15 GMT 2009


On Mon, 05 Jan 2009 11:57:16 -0600, Doug Hackworth
<doug.hackworth at vanderbilt.edu> wrote:
>> If that isn't the problem, it'd help someone to figure it out if you 
>> could provide a complete small executable program that exhibits the 
>> problem behavior.
> 
> Attached is an example program which illustrates the problem I'm having. 
> Again, 
> the QCheckBox seems to work (its isChecked() method returns the correct
> thing, 
> for example), but there is no action from the slot function that I have 
> (ostensibly) connected to its toggled() signal.
> 
> I'm not a Qt or PyQt expert yet, so perhaps I've overlooked something 
> elementary.  Any insights from this list's collected wisdome would be
quite
> welcome.

Use the stateChanged(int) signal instead.

Also FoobarApplication is calling the wrong super-class __init__.

Phil


More information about the PyQt mailing list