Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qmlscene not found VirtualKeyboard



  • Hello,
    I used qmlscene for preview my qml code.
    But qmlscene cannot find VirtualKeyboard

    module "QtQuick.VirtualKeyboard.Plugins" is not installed
    

    When I run my program, every thing is OK - VirtualKeyboard is desplayed corectly.

    So I tryed use parameter -I and -P and environment variable:
    Without success.
    Do you have some advice?

    Than you.

    OPTION="-I /media/data/qt/QT5.12/5.15.0/gcc_64/qml/QtQuick/VirtualKeyboard/"
    OPTION="${OPTION} -P/media/pou/data/qt/QT5.12/5.15.0/gcc_64/qml/QtQuick/VirtualKeyboard/ "
    export QML_IMPORT_PATH="/media/data/qt/QT5.12/5.15.0/gcc_64/qml/QtQuick/VirtualKeyboard/libqtquickvirtualkeyboardplugin.so"
    export QML2_IMPORT_PATH=${QML_IMPORT_PATH}
    export QT_PLUGIN_PATH=${QML_IMPORT_PATH}
    

  • Moderators

    @poucz
    you actually only need QT_IM_MODULE=qtvirtualkeyboard env variable. Remove the other variables you set.
    If your app can load all other imports no further changes are needed.


  • Moderators

    @poucz
    you actually only need QT_IM_MODULE=qtvirtualkeyboard env variable. Remove the other variables you set.
    If your app can load all other imports no further changes are needed.



  • Yes it works great, thank you very much


Log in to reply