[PyQt] Possible bug with new signal-slot connection

Hans-Peter Jansen hpj at urpla.net
Wed May 16 08:39:10 BST 2012


Hi Alexander,

Am Tuesday 15 May 2012 16:34:05 schrieb Alexander Bruy:
> Hi all,
>
> I try to use new style for signal-slot connection [0] in my project. And
> have one problem that looks like bug in PyQt.
>
> There is a dialog window with QDialogButtonBox, which has two buttons
> OK and Close. During the program execution I need to change behavior
> of Close button: pressing this button should not close the dialog but
> invoke another slot.

Apart from your issue, consider to subclass QDialog and reimplement reject to 
conditionally do what you want without continuously fiddling with 
{dis,}connect.

Pete 


More information about the PyQt mailing list