Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to fix this error : module "QtQuick.VirtualKeyboard" version 2.3 is not installed
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 3 Posters 8.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MhM93M Offline
    MhM93M Offline
    MhM93
    wrote on last edited by
    #1

    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

    H.Ghassami

    raven-worxR 1 Reply Last reply
    0
    • MhM93M MhM93

      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

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @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.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • MhM93M Offline
        MhM93M Offline
        MhM93
        wrote on last edited by
        #3

        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?

        H.Ghassami

        raven-worxR 1 Reply Last reply
        0
        • MhM93M MhM93

          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?

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by raven-worx
          #4

          @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

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          2
          • MhM93M Offline
            MhM93M Offline
            MhM93
            wrote on last edited by
            #5

            thanks to reply, I'll check it.

            H.Ghassami

            1 Reply Last reply
            0
            • J Offline
              J Offline
              JR_Techno
              wrote on last edited by
              #6

              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!

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved