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

How to fix this error : module "QtQuick.VirtualKeyboard" version 2.3 is not installed



  • Hi
    I want to add some language layout to virtual keyboard (Qt 5.10) but for some language just shows a black rectangle instead of virtual keyboard and show this error: module "QtQuick.VirtualKeyboard" version 2.3 is not installed.
    in the main.qml in each layout that I need, like Arabic or Farsi, they import QtQuick.VirtualKeyboard 2.3 but I think I just can use 2.1 version.
    How to update it?
    thanks


  • Moderators

    @MhM93
    are you talking about a deployed application? or started directly from QtCreator?

    Nevertheless this error means that the QtVirtualKeyboard (taken from Qt 5.10) can't be found in any of the QML import paths.



  • I use it in .pro file with this code :

    CONFIG += link_pkgconfig
    
        QT += svg
        QTPLUGIN += qtvirtualkeyboardplugin
    
    target.path = $$[QT_INSTALL_EXAMPLES]/kb
    

    so, if I get it, I maybe use deploy application. Am I say correct?
    so, How an I fix that? if I use the code (virtualkeyboard from github) is better?


  • Moderators

    @MhM93 said in How to fix this error : module "QtQuick.VirtualKeyboard" version 2.3 is not installed:

    so, if I get it, I maybe use deploy application. Am I say correct?

    read the link i've posted. No need to alter the .pro file
    You need to deploy your libs and plugins properly, but this is all well described in the link



  • thanks to reply, I'll check it.



  • I could resolve this problem.
    On the machine where i install the sofware, i download corresponding QT (example : 5.15.2) with QT Creator.
    I link the Qml path with the sources on main.cpp :

    qputenv("QML2_IMPORT_PATH", QString("/home/USER_NAME/Qt/5.15.2/gcc_64/qml").toLatin1());
    

    and it's work.
    You can move/export le qml folder too if needed on deployement!


Log in to reply