February 26, 2012

pascal95abc pascal95abc
Lab Rat
121 posts

OnKeyDown event (key down -> scroll down)

 

Hello.

How to implement an onkeydown event.

I didnt find one, there is nothing starting with OnKey…

Thank you

 Signature 

Qt 4.7.3
Symbian OS v9.4 / Symbian^1, S60 5th Edition
on N97

3 replies

February 26, 2012

leon.anavi leon.anavi
Area 51 Engineer
1217 posts

Have you tried to use onPressed [doc.qt.nokia.com] ?

 Signature 

http://anavi.org/

February 26, 2012

pascal95abc pascal95abc
Lab Rat
121 posts

And how to determine what key was pressed ?

if KEY == ??? {

 Signature 

Qt 4.7.3
Symbian OS v9.4 / Symbian^1, S60 5th Edition
on N97

February 26, 2012

task_struct task_struct
Ant Farmer
353 posts

Here is an example http://doc.qt.nokia.com/4.7-snapshot/qml-keyevent.html

Also there is onDownPressed signal [doc.qt.nokia.com]

 Signature 

“Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program.”
- Linus Torvalds

 
  ‹‹ [solved] Howto download HTTP (GET)      How to dynamically create Rectangles ? ››

You must log in to post a reply. Not a member yet? Register here!