【发布时间】:2019-06-20 09:46:06
【问题描述】:
环境:
Qt 5.13 + Mingw32 + Windows 10 64bit
或
Qt 5.11 + Mingw32 + Windows 10 64bit
演示代码:
import QtQuick 2.12
import QtQuick.Window 2.12
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Item {
id: name
anchors.fill: parent
focus: true
Keys.onReleased: console.log("onReleased")
}
}
问题:QML Keys.onReleased 按键时触发(任意键)
【问题讨论】: