Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Installing QtVirtualKeyboard on a Qt Widget App

Installing QtVirtualKeyboard on a Qt Widget App

Scheduled Pinned Locked Moved Solved Mobile and Embedded
13 Posts 4 Posters 2.0k 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.
  • D Offline
    D Offline
    Deneguil
    wrote on last edited by
    #1

    Hello, I'm trying to add the QtVirtualKeyboard to an existing Qt Widget App but I'm having trouble doing so. I'm using QtCreator and Qt version 5.15.2.
    I started by trying to add qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); to the main.cpp file and QT += virtualkeyboard in the .pro file but I got a "unknown module" error.

    Now I'm trying to compile the source code for the keyboard but when running it I'm having these errors. 120ea161-d09a-4a8e-a3b3-e48771f13e20-image.png

    How do I go about adding the keyboard to my app?
    Thank you

    jsulmJ 1 Reply Last reply
    0
    • D Deneguil

      Hello, I'm trying to add the QtVirtualKeyboard to an existing Qt Widget App but I'm having trouble doing so. I'm using QtCreator and Qt version 5.15.2.
      I started by trying to add qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); to the main.cpp file and QT += virtualkeyboard in the .pro file but I got a "unknown module" error.

      Now I'm trying to compile the source code for the keyboard but when running it I'm having these errors. 120ea161-d09a-4a8e-a3b3-e48771f13e20-image.png

      How do I go about adding the keyboard to my app?
      Thank you

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Deneguil said in Installing QtVirtualKeyboard on a Qt Widget App:

      Now I'm trying to compile the source code for the keyboard

      It would be actually easier to install Qt Virtual Keyboard instead.
      How did you install Qt and on which OS?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Deneguil said in Installing QtVirtualKeyboard on a Qt Widget App:

        Now I'm trying to compile the source code for the keyboard

        It would be actually easier to install Qt Virtual Keyboard instead.
        How did you install Qt and on which OS?

        D Offline
        D Offline
        Deneguil
        wrote on last edited by
        #3

        @jsulm I'm on a raspberry pi 4 running raspbian, and to be honest I'm not sure how Qt was installed it was already on it when given to me for the project and the person who installed it forgot how he did it

        jsulmJ 1 Reply Last reply
        0
        • D Deneguil

          @jsulm I'm on a raspberry pi 4 running raspbian, and to be honest I'm not sure how Qt was installed it was already on it when given to me for the project and the person who installed it forgot how he did it

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Deneguil Are you cross-compiling?
          To install virtual keyboard on RaspberryPI install these packages using apt:

          • libqt5virtualkeyboard5
          • libqt5virtualkeyboard5-dev

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Deneguil Are you cross-compiling?
            To install virtual keyboard on RaspberryPI install these packages using apt:

            • libqt5virtualkeyboard5
            • libqt5virtualkeyboard5-dev
            D Offline
            D Offline
            Deneguil
            wrote on last edited by
            #5

            @jsulm It's for an embedded app so it'll only run on a raspberry
            Thank you for the packages, I now need to add QT += virtualkeyboard in the .pro file and create an input panel to use the keyboard right?

            jsulmJ 1 Reply Last reply
            0
            • D Deneguil

              @jsulm It's for an embedded app so it'll only run on a raspberry
              Thank you for the packages, I now need to add QT += virtualkeyboard in the .pro file and create an input panel to use the keyboard right?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Deneguil yes

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              D 1 Reply Last reply
              0
              • jsulmJ jsulm

                @Deneguil yes

                D Offline
                D Offline
                Deneguil
                wrote on last edited by
                #7

                @jsulm thank you you've helped me a lot the keyboard works I only need to style it now

                1 Reply Last reply
                0
                • nadimnadafN Offline
                  nadimnadafN Offline
                  nadimnadaf
                  wrote on last edited by
                  #8

                  QT += virtualkeyboard
                  Project ERROR: Unknown module(s) in QT: virtualkeyboard
                  In My case , this will error will generated
                  OS : linux (I am using a imx board for crosscompiling)
                  Qt5

                  jsulmJ 1 Reply Last reply
                  0
                  • nadimnadafN nadimnadaf

                    QT += virtualkeyboard
                    Project ERROR: Unknown module(s) in QT: virtualkeyboard
                    In My case , this will error will generated
                    OS : linux (I am using a imx board for crosscompiling)
                    Qt5

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @nadimnadaf If you read this thread you will see what the solution was.
                    Did you try that?

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • nadimnadafN Offline
                      nadimnadafN Offline
                      nadimnadaf
                      wrote on last edited by
                      #10

                      @jsulm Yes

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        Hi,

                        So what exactly did you do to install Qt on your target ?
                        Use distribution packages ?
                        Deployed your cross-compiled Qt ?
                        If the latter, did you cross-compile the module as well ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • nadimnadafN Offline
                          nadimnadafN Offline
                          nadimnadaf
                          wrote on last edited by
                          #12

                          @SGaist said in Installing QtVirtualKeyboard on a Qt Widget App:

                          So what exactly did you do to install Qt on your target ?

                          Its a Yocto Setup.

                          jsulmJ 1 Reply Last reply
                          0
                          • nadimnadafN nadimnadaf

                            @SGaist said in Installing QtVirtualKeyboard on a Qt Widget App:

                            So what exactly did you do to install Qt on your target ?

                            Its a Yocto Setup.

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            @nadimnadaf said in Installing QtVirtualKeyboard on a Qt Widget App:

                            Its a Yocto Setup.

                            Then you also have to build QtVirtualKeyboard module using Yocto I guess

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            1

                            • Login

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