[Gambas-user] Strange bug in QT / gb.qt ?

Stefano Palmeri rospolosco at ...152...
Fri Aug 17 18:07:18 CEST 2007


Alle 17:38, venerdì 17 agosto 2007, Benoit Minisini ha scritto:
> On vendredi 17 août 2007, Stefano Palmeri wrote:
> > Alle 16:10, venerdì 17 agosto 2007, Benoit Minisini ha scritto:
> > > PUBLIC SUB TextBox1_KeyPress()
> > >
> > >   DEBUG Key.Code;; Key.State
> > >
> > > END
> > >
> > > PUBLIC SUB TextBox1_KeyRelease()
> > >
> > >   DEBUG Key.Code;; Key.State
> > >
> > > END
> >
> > Hi, Benoit.
> >
> > Tested the code with Qt 3.3.8 and Gambas 1.9.49.
> > The dubug output is (abcdef pressed/released):
> >
> > FMain.TextBox1_KeyPress.13: 65 0
> > FMain.TextBox1_KeyRelease.19: 65 0
> > FMain.TextBox1_KeyPress.13: 66 0
> > FMain.TextBox1_KeyRelease.19: 66 0
> > FMain.TextBox1_KeyPress.13: 67 0
> > FMain.TextBox1_KeyRelease.19: 67 0
> > FMain.TextBox1_KeyPress.13: 68 0
> > FMain.TextBox1_KeyRelease.19: 68 0
> > FMain.TextBox1_KeyPress.13: 69 0
> > FMain.TextBox1_KeyRelease.19: 69 0
> > FMain.TextBox1_KeyPress.13: 70 0
> > FMain.TextBox1_KeyRelease.19: 70 0
> >
> > Bye.
>
> What is your distribution? Can you do the same test on 1.9.50?
>
> This bug is related to the input methods. If a control uses them (TextBox,
> TextArea, TextEdit, SpinBox...), then the problem arises.
>
> On my Mandriva 2007.1, apparently, the input methods are plugins that comes
> from an external project (immodule), not from TrollTech.
>
> Regards,

My distribution is Slackware 11.0. Anyway I tested with Gtk component and
the debug output is (note always 16):

FMain.TextBox1_KeyPress.13: 97 16
FMain.TextBox1_KeyRelease.19: 97 16
FMain.TextBox1_KeyPress.13: 98 16
FMain.TextBox1_KeyRelease.19: 98 16
FMain.TextBox1_KeyPress.13: 99 16
FMain.TextBox1_KeyRelease.19: 99 16
FMain.TextBox1_KeyPress.13: 100 16
FMain.TextBox1_KeyRelease.19: 100 16
FMain.TextBox1_KeyPress.13: 101 16
FMain.TextBox1_KeyRelease.19: 101 16
FMain.TextBox1_KeyPress.13: 102 16
FMain.TextBox1_KeyRelease.19: 102 16

gtk is 2.8.20.

I'm going to download 1.9.50

bye.









More information about the User mailing list