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

Benoit Minisini gambas at ...1...
Fri Aug 17 16:10:31 CEST 2007


Hi,

I currently have a strange bug in gb.qt: Key.Code is always zero inside a 
KeyRelease event. 

Apparently this bug comes directly from the QT library.

This bug does not occur if I use gb.gtk instead of gb.qt.

I use Mandriva 2007.1 with QT 3.3.8. By using google, I found that this 
problem was encountered with a guy on an old Fedora with QT 3.3.4. He fixed 
the problem by compiling QT from sources. Strange...

I'm looking for kind guys that would check this problem on their own system.

To test the problem, just put a TextBox on a Form, and use the following code:

PUBLIC SUB TextBox1_KeyPress()

  DEBUG Key.Code;; Key.State

END

PUBLIC SUB TextBox1_KeyRelease()

  DEBUG Key.Code;; Key.State

END

Thanks in advance,

Regards.

-- 
Benoit Minisini




More information about the User mailing list