You are not logged in.



  • "konopiux" is male
  • "konopiux" started this thread

Posts: 12

Location: Lithuania

  • Send private message


Monday, December 12th 2011, 8:41am

Qt keylistener

i'm new to QT,
can someone tell me, what is the best way to make
keylistener in Qt form?
I can use function kbhit ( ) or there is any another, maybe better way?
for example I need to use arrow keys.

This post has been edited 1 times, last edit by "konopiux" (Dec 12th 2011, 9:06am)


Monday, December 12th 2011, 10:59am

kbhit is not standard c++

look at eventFilter…l#event-filters
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Used tags

key, keylistener, move, qt