Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Seeking in-app QT5 virtual keyboard example (widget based).
Forum Updated to NodeBB v4.3 + New Features

Seeking in-app QT5 virtual keyboard example (widget based).

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 886 Views 1 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
    DalePennington
    wrote on last edited by
    #1

    Folks,
    Back yet again on my QT4 -> QT5 port. Now its the virtual keyboard(s) we use. In QT 4, we have an compiled into app virtual keyboard, implemented with QInputContext (and using the QApplication::setInputContext function). Now I know those are all obsolete and not in QT5, so I am seeing if there are any good current examples of QWidget use of virtual keyboards (all I seem to find search is QML based usage).
    I am hoping with a decent example I can use to help reengineer out virtual keyboards to work well with the new QT5 version of our applications.

    Thanks,
    Dale Pennington

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

      Hi,

      KDAB has several articles related to QInoutMethod that will likely interest you.

      Start with https://www.kdab.com/qt-input-method-depth/amp/

      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
      1
      • D Offline
        D Offline
        DalePennington
        wrote on last edited by
        #3

        Yep, I looked at those, even downloaded the sample code, but it seems to be built as a non-embedded keyboard (i.e. the keyboard is a separate server that communicates via DBus). I would rather not have a separate keyboard server app. He implies it can be done, but says it is not as interesting.
        Also, I assume my real app loads the plugin for use, but what sort of work does that take ?

        Dale

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

          This excellent article shows how to create an in-app virtual keyboard. Granted its a QML keyboard but it shows the basics that should keep you going.

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

          M 1 Reply Last reply
          1
          • SGaistS SGaist

            This excellent article shows how to create an in-app virtual keyboard. Granted its a QML keyboard but it shows the basics that should keep you going.

            M Offline
            M Offline
            mulfycrowh
            wrote on last edited by
            #5

            @SGaist Hi, I downloaded this example and tried to run it.
            I got this message:“Could not find the executable“.
            Any idea maybe?

            Thanks.

            JoeCFDJ 1 Reply Last reply
            0
            • M mulfycrowh

              @SGaist Hi, I downloaded this example and tried to run it.
              I got this message:“Could not find the executable“.
              Any idea maybe?

              Thanks.

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by JoeCFD
              #6

              @mulfycrowh
              TARGET = MockupVirtualKeyboard
              TEMPLATE = lib

              it is a lib. Did you notice there is no main.cpp?

              M 1 Reply Last reply
              0
              • JoeCFDJ JoeCFD

                @mulfycrowh
                TARGET = MockupVirtualKeyboard
                TEMPLATE = lib

                it is a lib. Did you notice there is no main.cpp?

                M Offline
                M Offline
                mulfycrowh
                wrote on last edited by
                #7

                @JoeCFD thanks. You‘re right, there is no main.
                How can I write a small app using this lib?
                Just to see how it runs.

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

                  It's a plugin.
                  Once installed it can be used in the same way Qt's virtual keyboard is used.

                  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

                  • Login

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