Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Problem in detection of special keys...
Forum Updated to NodeBB v4.3 + New Features

Problem in detection of special keys...

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.4k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    aekam
    wrote on last edited by
    #1

    Hello,

    I have written simple program to detect key strokes.
    I'm able to detect normal keyboard keys but not the special function keys like, volume up, volume down, mute etc...
    i received key value [16777251] for all of this keys, vol+ [115], vol- [114] and mute [113]...

    is there anything else i need to do.???

    @
    Item {
    width: 100
    height: 100
    focus: true
    Keys.onPressed: {
    console.log("key pressed: " + event.key);
    event.accepted = true;
    }
    }
    @

    If you take care of inches, you won't have to worry about miles... :)

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Probably you need to use OS-specific APIs... or test with Qt5 - there might have been a change there (definitely was for mouse buttons).

      (Z(:^

      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