Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Getting NumLock and keyboard numeric keypad to work for button presses.

Getting NumLock and keyboard numeric keypad to work for button presses.

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 734 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Circuits
    wrote on last edited by
    #1

    While I have been able to get the generic number sequence 0-9 working with my keyboard by using the Keys QML type:

        Keys.onDigit0Pressed: outValue+=0
        Keys.onDigit1Pressed: outValue+=1
        Keys.onDigit2Pressed: outValue+=2
        Keys.onDigit3Pressed: outValue+=3
        Keys.onDigit4Pressed: outValue+=4
        Keys.onDigit5Pressed: outValue+=5
        Keys.onDigit6Pressed: outValue+=6
        Keys.onDigit7Pressed: outValue+=7
        Keys.onDigit8Pressed: outValue+=8
        Keys.onDigit9Pressed: outValue+=9
    

    I was wondering how I might go about getting the numeric keyboard keys to work when the user has NumLock on, is that possible?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved