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. Qt VirtualKeyboard Example
Forum Updated to NodeBB v4.3 + New Features

Qt VirtualKeyboard Example

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 5 Posters 2.8k 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.
  • R Offline
    R Offline
    Rtsuzuki
    wrote on last edited by
    #1

    I'm testing out the enterprise addition with the trial right now and I'm having an issue right now with the virtualkeyboard example.
    It example compiles and executes but the window doesn't display anything.
    I checked the code and it seems as though i'm getting a "QML module not found" error when it tries to import the QtQuick.Enterprise.VirtualKeyboard 1.3 module.
    Anyone else encounter this issue?
    Any help will be appreciated.
    Thank you.

    Cleiton BuenoC 1 Reply Last reply
    0
    • knutK Offline
      knutK Offline
      knut
      wrote on last edited by
      #2

      hello
      i also want to use virtualkeyboard from Enterprise but it does not work.
      do you solve your Problem?

      best regards

      knut

      1 Reply Last reply
      0
      • jeremy_kJ Offline
        jeremy_kJ Offline
        jeremy_k
        wrote on last edited by
        #3

        I am guessing that the issue is due to Qt looking for the style and input method plugins in the installed Qt path.

        This can be remedied by running make install, or by setting QT_PLUGIN_PATH to point to where the input method plugin is, and QML2_IMPORT_PATH to the location for the style plugin. Setting the environment variables will also require copying over qmldir for the style plugin.

        Asking a question about code? http://eel.is/iso-c++/testcase/

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Beemaneni Bala
          wrote on last edited by Beemaneni Bala
          #4

          Add this line in ur main.cpp

          qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
          

          Add below lines to ur QML page:

          InputPanel {
              id: inputPanel
              z: 1
              y: Qt.inputMethod.visible ? parent.height - inputPanel.height : parent.height
              anchors.left: parent.left
              anchors.right: parent.right
          }
          

          and on mouse area for input field pass below line
          Qt.inputMethod.show()

          Regards
          Bala B

          jeremy_kJ 1 Reply Last reply
          0
          • B Beemaneni Bala

            Add this line in ur main.cpp

            qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
            

            Add below lines to ur QML page:

            InputPanel {
                id: inputPanel
                z: 1
                y: Qt.inputMethod.visible ? parent.height - inputPanel.height : parent.height
                anchors.left: parent.left
                anchors.right: parent.right
            }
            

            and on mouse area for input field pass below line
            Qt.inputMethod.show()

            Regards
            Bala B

            jeremy_kJ Offline
            jeremy_kJ Offline
            jeremy_k
            wrote on last edited by
            #5

            @Beemaneni-Bala said:

            Add this line in ur main.cpp

            qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
            

            Already handled by the example.

            Asking a question about code? http://eel.is/iso-c++/testcase/

            1 Reply Last reply
            0
            • R Rtsuzuki

              I'm testing out the enterprise addition with the trial right now and I'm having an issue right now with the virtualkeyboard example.
              It example compiles and executes but the window doesn't display anything.
              I checked the code and it seems as though i'm getting a "QML module not found" error when it tries to import the QtQuick.Enterprise.VirtualKeyboard 1.3 module.
              Anyone else encounter this issue?
              Any help will be appreciated.
              Thank you.

              Cleiton BuenoC Offline
              Cleiton BuenoC Offline
              Cleiton Bueno
              wrote on last edited by
              #6

              @Rtsuzuki I'm trying to use with EGLFS in a i.MX6, but causes an error EGLFS overwrite Window ...
              Passed something like this? I using Qt5.6 and cross-compiling with Yocto Project.

              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