Results 1 to 2 of 2

Thread: how to insert char/string into a text box of current window

  1. #1
    Join Date
    Aug 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default how to insert char/string into a text box of current window

    hey

    my code implements virtual keyboard that inserts chars into the text edit (text box).
    i want to insert the same char into a text box of the current window running such as facebook, search engines ...

    (I'm not sure but i think that i need to add some system liberies in order to interupte as a keyboard)

    please help.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to insert char/string into a text box of current window

    You need to use system specific APIs to stuff characters into the operating system input stream for other applications. SendMessage() with appropriate window handles will get you some of the way.

Similar Threads

  1. How to build Qstring from char or string?
    By tonnot in forum Newbie
    Replies: 4
    Last Post: 27th September 2010, 11:34
  2. Replies: 2
    Last Post: 13th April 2010, 16:50
  3. How to convert QString to std::string or char*?
    By yangyunzhao in forum Qt Programming
    Replies: 26
    Last Post: 26th August 2009, 06:52
  4. string to char*?
    By nass in forum General Programming
    Replies: 3
    Last Post: 2nd January 2007, 15:47
  5. Current char in QTextEdit
    By jlbrd in forum Qt Programming
    Replies: 1
    Last Post: 12th August 2006, 09: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.