Results 1 to 2 of 2

Thread: Text to system (faking keyboard input)

  1. #1
    Join Date
    Aug 2011
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60

    Default Text to system (faking keyboard input)

    Hello developers,

    I try to send a simple unicode text to a remote machine, and there I it should be output like it was typed in with the keyboard. I know this is maybe not possible with Qt. Have you any ideas how to solve that problem (I thought about mapping the unicode characters back to scan codes)? Or do you know some applications that do something like this (where I can read how they did it).

    Strahlex

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Text to system (faking keyboard input)

    I'm assuming that there's some app on the client machine running and you want those keys to be triggered in that app.
    If that's the case then look at postEvent().
    Using postEvent() you can send QKeyEvent and the app will behave as someone would press a key on the keyboard.

    Not sure why you would waht to do that though.

Similar Threads

  1. Disable keyboard input for spinbox entry
    By babygal in forum Qt Programming
    Replies: 8
    Last Post: 2nd December 2016, 01:06
  2. How can I set the keyboard input mode?
    By Santiago in forum Newbie
    Replies: 3
    Last Post: 15th November 2011, 13:21
  3. Why modeless dialog block keyboard input
    By franco.amato in forum Qt Programming
    Replies: 1
    Last Post: 15th April 2010, 02:08
  4. Accessing keyboard input in child process
    By GTBuilder in forum Qt Programming
    Replies: 0
    Last Post: 22nd January 2008, 16:04
  5. How to enable keyboard and mouse as input in qtopia-2.1.1
    By hvreddy1110 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 12th October 2006, 10:30

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.