[Qt] Qt Key events

zeljko zeljko at holobit.net
Sat May 26 15:13:04 CEST 2007


On Tuesday 22 May 2007 22:03, Mattias Gaertner wrote:
> On Tue, 22 May 2007 21:47:43 +0200
>
> "Felipe Monteiro de Carvalho" <felipemonteiro.carvalho at gmail.com> wrote:
> > On 5/22/07, zeljko <zeljko at holobit.net> wrote:
> > > What is needed to be implemented in Qt widgetset so eg.
> > > TEdit.OnKeyDown() get fired ?
> > > Messages delivery ? As I can see SlotKey() is called ok, but cannot
> > > get anything in OnKeyDown(),OnKeyPress(),OnKeyUp() of any
> > > control ...
> >
> > If SlotKey is called, then there is nothing qt specific about the
> > problem. It's a question of knowing which lcl calls to make .... I'd
> > advice to ask this on the main lazarus mailling list, so the LCL
> > experts can see it.
>
> http://wiki.lazarus.freepascal.org/LCL_Key_Handling

tnx, I've found that in TQtWidget.SlotKey(Event: QEventH); cdecl;
is called LCLObject.WndProc(Msg) ?!? why ? I've just changed it with 
LCLObject.Broadcast(Msg) and now I can get OnKeyXXXX() events in controls 
(doubled, but I get it ;) ). Felipe ?



More information about the Qt mailing list