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. Keys.onReturnPressed:, Keys.onEnterPressed: , Keys.onEscapePressed: not working

Keys.onReturnPressed:, Keys.onEnterPressed: , Keys.onEscapePressed: not working

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 961 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.
  • V Offline
    V Offline
    vivekmalik2466
    wrote on last edited by
    #1

    @ Button {
    id: btnStart
    iconsrc: qsTr("")
    text: qsTr("START")
    visible: false
    anchors { top: txtSelectVehicle.bottom; topMargin: 10; left: txtSelectVehicle.left }
    focus: true
    Keys.onReturnPressed: {
    console.log(event.key + "enterrrrrrrrrrrrrrrrrrrrrrrrrrrr")
    }

            Keys.onEnterPressed: console.log("enter")
               Keys.onEscapePressed: console.log("esc")
               Keys.onDeletePressed: console.log("delete")
    

    }}@

    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