我在树莓派的 Yocto 项目上使用 qt qml 5.7。我的项目需要土耳其语的虚拟键盘。QT 虚拟键盘不支持土耳其语,所以我想创建我的自定义布局。我从这里添加我的项目示例布局代码作为名称“myCustomLayout.qml”。
我通过以下代码运行我的虚拟键盘显示功能。
import QtQuick 2.5
import QtQuick.VirtualKeyboard 2.1
import QtQuick.Controls 2.0
InputPanel {
id: inputPanel
visible: Qt.inputMethod.visible
height:main.height/4
y:main.height - height
x:main.width/8
width: main.width*6/8
focus: true
}
当我运行虚拟键盘显示功能时,出现的键盘不是我的自定义布局,它仍然是常规的英文键盘布局。如何在我的应用程序中添加我的自定义键盘布局?