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. Qt virtual keyboard plugin

Qt virtual keyboard plugin

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 6.0k Views
  • 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.
  • B Offline
    B Offline
    Bremenpl
    wrote on last edited by
    #1

    Hello there,
    I am using Qt v5.6. I am using qt creator to develop a widget application for a raspberry pi (using cross compilation). It works all right. At this moment however I need to figure a way to input data into the system (Raspberry pi uses a touchscreen). So I need some sort of virtual on screen keyboard. I see that there is something like this in qt: http://doc.qt.io/qt-5/qtvirtualkeyboard-index.html
    But I find it hard to:

    • Figure out either I can use it in my application without Qt quick (I dont use qt quick)
    • Figure out how to build it, even with the instructions

    For serialbus and serialport modules I have simply cloned them from git repository and build in command line, then deployed the libs to the raspberry pi. This is a plugin, not a module however and I am not sure how to proceed. I would be really grateful If one could help me figure out how to implement this virtual keyboard into an existing qt widgets application.

    lprzenioslo.zut.edu.pl

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      Qt Virtual Keyboard is QML only. The only thing that can be customised in C++ is the input method.
      On how to build and deploy see http://doc.qt.io/qt-5/build.html

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Bremenpl
        wrote on last edited by
        #3

        Yes I have seen the link. So If I understood you correctly, it is not possible to use it with c++ qt only?

        lprzenioslo.zut.edu.pl

        1 Reply Last reply
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          No, it can't be used with QWidget based applications

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          1
          • BuckwheatB Offline
            BuckwheatB Offline
            Buckwheat
            wrote on last edited by
            #5

            @Bremenpl .. I have had a similar criteria three years ago. I just went ahead and designed my own keyboard dialog patterned after the Android one on a tablet I had. It works pretty well. as Qt gives great mechanisms for interacting with the QLineEdit, QTextEdit, etc. It took me less than one day to make the alpha-numeric keypad. Make it a plugin and you can use it on different apps.

            Dave Fileccia

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bremenpl
              wrote on last edited by Bremenpl
              #6

              I have used this one http://processors.wiki.ti.com/index.php/Qt_Keyboard_Template
              After slight modifications it works perfect and its very simple, not bloated with weird features and plugins.

              lprzenioslo.zut.edu.pl

              1 Reply Last reply
              0
              • VRoninV Offline
                VRoninV Offline
                VRonin
                wrote on last edited by
                #7

                The problem with that one is that is 0% internationalisable but if you care only for ASCII English then it's a solution

                "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                ~Napoleon Bonaparte

                On a crusade to banish setIndexWidget() from the holy land of Qt

                B 1 Reply Last reply
                0
                • VRoninV VRonin

                  The problem with that one is that is 0% internationalisable but if you care only for ASCII English then it's a solution

                  B Offline
                  B Offline
                  Bremenpl
                  wrote on last edited by Bremenpl
                  #8

                  @VRonin Yes its very simple, If I wanted to add special characters I would need to think about something more.

                  lprzenioslo.zut.edu.pl

                  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