[Gambas-user] LostFocus event under Qt

Benoit Minisini gambas at ...1...
Sat Oct 11 15:10:20 CEST 2008


On samedi 11 octobre 2008, charlesg wrote:
> Hi,
> '--------------------------
> PUBLIC SUB Button1_Click()
>   PRINT "you clicked button"
> END
>
> PUBLIC SUB TextBox1_LostFocus()
>   PRINT "textbox loses focus"
> END
> '-------------------------
> click on button while textbox has focus.
> Under GTK both lines print.
> Under QT LostFocus event is not triggered.
>
> Is this right?
>
> rgds

It is possible, as QT and GTK+ do not have the same focus rules. Clicking on a 
button on QT apparently does not take focus.

Regards,

-- 
Benoit Minisini




More information about the User mailing list