如何在Qt中启用手写识别?

时间:2018-12-17 09:20:51

标签: qt qml qt5 qqmlcomponent

In the image you can see that the HWR button is enabled(green) but the input panel to write using mouse pointer is not coming我正在尝试运行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\\\"
}

In the image you can see that the HWR button is enabled(green) but the input panel to write using mouse pointer is not coming

1 个答案:

答案 0 :(得分:0)

手写按钮位于键盘右上方。