PDA

View Full Version : handling keyboard events from a console app



g.cavallin
18th December 2006, 19:08
Hello everybody! As a Qt's newbie I'm impressed by the Qt's power, still I'm having troubles with a simple thing: I don't know how to trap keyboard press events from inside a non-gui (console) application.
In the attachement I included my test program and it's output result.
Is there any reason why these events are not captured?
Somebody can please help me? Thanks. Giovanni

wysota
18th December 2006, 22:31
You can't catch key events in non-gui applications.