在图像中,您可以看到 HWR 按钮已启用(绿色),但使用鼠标指针写入的输入面板没有出现我正在尝试运行 qt 提供的手写识别示例(basic.pro)。该应用程序正在使用 qt 虚拟键盘启动,但我无法看到 HWR 图标。谁能帮助我在这个例子中如何打开手写识别?我附上了应用程序的屏幕截图。
TEMPLATE = app
TARGET = basic
QT += qml quick quickcontrols2 xml
SOURCES += main.cpp
CONFIG += link_pkgconfig disable-desktop handwriting lipi-toolkit
static {
QT += svg
QTPLUGIN += qtvirtualkeyboardplugin
}
target.path = $$[QT_INSTALL_EXAMPLES]/virtualkeyboard/basic
INSTALLS += target
RESOURCES += \
demo.qrc
OTHER_FILES += \
Basic.qml \
basic-b2qt.qml \
content/AutoScroller.qml \
content/HandwritingModeButton.qml \
content/TextArea.qml \
content/TextField.qml \
disable-xcb {
message("The disable-xcb option has been deprecated. Please use disable-desktop instead.")
CONFIG += disable-desktop
}
disable-desktop|android-embedded|!isEmpty(CROSS_COMPILE)|qnx {
DEFINES += MAIN_QML=\\\"basic-b2qt.qml\\\"
} else {
DEFINES += MAIN_QML=\\\"Basic.qml\\\"
}