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.