Results 1 to 2 of 2

Thread: Determining key pressed regardless of layout

  1. #1
    Join Date
    Feb 2013
    Posts
    3
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Determining key pressed regardless of layout

    I'm making an onscreen keyboard to show a user's keypresses as they happen. I want to show the correct key being pressed regardless of the user's current keyboard layout. For instance, the 'N' key in qwerty is the 'B' key in dvorak. So pressing the same key with different keyboard layouts will generate events with different key types. Is there a way in Qt to detect the physical key being pressed, regardless of the user's settings?

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Determining key pressed regardless of layout


Similar Threads

  1. Determining QTextBlock font
    By smhall316 in forum Newbie
    Replies: 1
    Last Post: 19th October 2010, 22:00
  2. Replies: 6
    Last Post: 4th October 2010, 03:19
  3. Need help determining proper Qt distribution
    By bizmopeen in forum Newbie
    Replies: 2
    Last Post: 22nd December 2009, 20:47
  4. Determining no. of CPU cores available
    By cnbp173 in forum Qt Programming
    Replies: 3
    Last Post: 21st April 2009, 17:55
  5. determining how to bounce the ball
    By Binji in forum Qt Programming
    Replies: 9
    Last Post: 29th December 2007, 12:24

Tags for this Thread

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.