Results 1 to 3 of 3

Thread: Key mapping for my target device

  1. #1
    Join Date
    Mar 2012
    Location
    India
    Posts
    102
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Key mapping for my target device

    Hi,

    I have a target device which gives numeric (key_0, Key_1, etc.) key events to the Linux kernel. Now I want to enable texting on my Qt Gui for the device. This means I want to be able to type text in my line edits, text edits, etc.. Is there present any generic keymapping function where I can start from?

    The function should be such which maps the numeric events to the alphabets and also detects successive key presses for multiple alphabets on same events (like Key_1 -> a, b, c).

    Please guide how to start.

    Thanks in advance.
    Charvi.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,245
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Key mapping for my target device

    "Is there present any generic keymapping function where I can start from?"
    QMap QHash QMultiMap

    you will have to code your own algorithm if you can't use somebody else's
    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.

  3. #3
    Join Date
    Mar 2012
    Location
    India
    Posts
    102
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Key mapping for my target device

    Quote Originally Posted by amleto View Post
    you will have to code your own algorithm if you can't use somebody else's
    Where do I get already developed algorithms ?

Similar Threads

  1. QSortFilterProxyModel mapping
    By Sparhawk in forum Qt Programming
    Replies: 1
    Last Post: 17th December 2011, 20:00
  2. building for symbian device error: No rule to make target `MAKEFILE_0XE587C205.MK'
    By alireza.mirian in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 5th January 2011, 18:40
  3. Problem with build/execution of WinCE application on target device
    By marlag in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 21st July 2009, 13:33
  4. Mapping Question
    By rogerholmes in forum Qt Programming
    Replies: 0
    Last Post: 26th April 2009, 00:29
  5. mapping manager
    By sreedhar in forum Qt Programming
    Replies: 6
    Last Post: 16th February 2007, 13:48

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.