Results 1 to 2 of 2

Thread: handling keyboard events from a console app

  1. #1
    Join Date
    Dec 2006
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default handling keyboard events from a console app

    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
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: handling keyboard events from a console app

    You can't catch key events in non-gui applications.

Similar Threads

  1. Replies: 2
    Last Post: 24th July 2006, 19:36
  2. Keyboard Handling
    By ToddAtWSU in forum Qt Programming
    Replies: 4
    Last Post: 5th July 2006, 14:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.