[UFO-devel] Overriding processKeyEvent
Status: Beta
Brought to you by:
schmidtjf
|
From: Elie `w. B. <dro...@gm...> - 2006-04-17 21:38:15
|
Hello everyone,
I'm currently trying to slightly enhance/customize ULineEdit to provide som=
e
basic "shell like" features, which supposes I can grab some of the keys tha=
t
processKeyEvent() doesn't handle the way I want it to. I tried to create
some inherited class of ULineEdit providing another implementation of
processKeyEvent, filtering on keys that are of some interest to me, and
sending the others to the regular ULineEdit processKeyEvent.
My new object correctly receives key signals, but fails to propagate the
"message" to its ancestor. I tried to add a "ULineEdit::processKeyEvent(e)"
in my code in order to propagate the key event, but it fails do anything
useful : content of the ULineEdit isn't updated properly. I'm quite a bit
puzzled on this matter, so perhaps one of you guys can give me some hints o=
n
how I can achieve such a thing as "handling some specific keys". I'm not
sure this was the right approach, and I'm completely open to brand new
solutions if they provide results.
Thanks in advance !
--
{ drozofil -- www.lwo-lab.net }
|