[PyQt] Pressing enter in QLineEdit clicks QPushButton?

projetmbc projetmbc at club-internet.fr
Mon Jun 22 23:17:51 BST 2009


Mads Ipsen a écrit :
> If you change 'QDialog' to 'QWidget' the problem disappears. But I 
> have no idea why. Anybody?
>
> Best regards,
>
> Mads
In the first example proposed that did not work, you can see that the 
button has the focus even if the cursor is in the lineedit. I think that 
the problem comes from here.


Christophe.




More information about the PyQt mailing list