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. How to capture Hide key event in virtual Keypad

How to capture Hide key event in virtual Keypad

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 289 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.
  • P Offline
    P Offline
    Praveen.Illa
    wrote on last edited by Praveen.Illa
    #1

    Hello All,

    I am using Qt virtual Keypad in my project.
    I am able to print key values (using event.key) in console log for all keys, except hide key event (which is marked as red color in attached image).
    Can anyone please help me in capturing the hide key event in virtual keyboard.

    Below is the sample code for capturing key events

    TextField{
        id:sampletextfield
        width: window.width/1.5
        height: parent.height*.5
        anchors.centerIn: parent
        font.bold: true
        font.pixelSize: parent.height*.2
    
        Keys.onReleased: {
            console.log("key event = " + event.key)
        }
    }
    

    Thank you for your help

    4eec0c94-e3ba-420c-aa86-2a4b8e06f8ef-image.png

    P 1 Reply Last reply
    0
    • P Praveen.Illa

      Hello All,

      I am using Qt virtual Keypad in my project.
      I am able to print key values (using event.key) in console log for all keys, except hide key event (which is marked as red color in attached image).
      Can anyone please help me in capturing the hide key event in virtual keyboard.

      Below is the sample code for capturing key events

      TextField{
          id:sampletextfield
          width: window.width/1.5
          height: parent.height*.5
          anchors.centerIn: parent
          font.bold: true
          font.pixelSize: parent.height*.2
      
          Keys.onReleased: {
              console.log("key event = " + event.key)
          }
      }
      

      Thank you for your help

      4eec0c94-e3ba-420c-aa86-2a4b8e06f8ef-image.png

      P Offline
      P Offline
      Praveen.Illa
      wrote on last edited by
      #2

      @Praveen-Illa

      This was solved in another forum. Please refer to below link for the solution
      https://stackoverflow.com/questions/69814505/how-to-capture-hide-key-event-in-qt-virtualkeyboard

      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