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. Looking for Widget based QtVirtualKeyboard example
Forum Updated to NodeBB v4.3 + New Features

Looking for Widget based QtVirtualKeyboard example

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.0k 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,

    I am looking got an example of using Application integration of the QtVirtualKeyboard into a Widgets based application.

    For background, we are trying to port a Qt4 based software suite that runs in a kiosk environment. In Qt4 we used QInputContext to create virtual keypads.

    I suspect in the long run I will end up tweaking the QtVirtualKeyboard source as there are features we want that do no appear to show with the current software (but I could be wrong).

    1. Our keypads are fixed size (not full-screen), with different sizes for different layouts (They are also widget based, but I should be able to redo them in QML). They are repositioned to be relative to the current focus widget.
    2. We have one option where we do not show a keypad for an input, currently controlled by a dynamic property.

    I want to example the Widget example to understand how the integration works and possible get around needing to change the source.

    Thanks,
    Dale Pennington

    Pl45m4P 1 Reply Last reply
    0
    • D DalePennington

      Folks,

      I am looking got an example of using Application integration of the QtVirtualKeyboard into a Widgets based application.

      For background, we are trying to port a Qt4 based software suite that runs in a kiosk environment. In Qt4 we used QInputContext to create virtual keypads.

      I suspect in the long run I will end up tweaking the QtVirtualKeyboard source as there are features we want that do no appear to show with the current software (but I could be wrong).

      1. Our keypads are fixed size (not full-screen), with different sizes for different layouts (They are also widget based, but I should be able to redo them in QML). They are repositioned to be relative to the current focus widget.
      2. We have one option where we do not show a keypad for an input, currently controlled by a dynamic property.

      I want to example the Widget example to understand how the integration works and possible get around needing to change the source.

      Thanks,
      Dale Pennington

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      What about this one here? (https://stackoverflow.com/questions/57161308/virtual-keyboard-or-onscreen-keyboard-for-qtwidgets-applications)

      @DalePennington said in Looking for Widget based QtVirtualKeyboard example:

      They are also widget based, but I should be able to redo them in QML

      Even though the keyboard was designed in QML, you can use it in QWidget apps.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DalePennington
        wrote on last edited by
        #3

        No that is desktop level integration (as designed in the QtVirtualKeyboard deployment documentation). I can do that already, but then the virtual keyboard takes over the entire screen.
        Application level integration appears to involve manually instantiating an InputPanel in your all. QtVirtualKeyboard has a qml based example of this, but not a QWidget based example.

        Pl45m4P 1 Reply Last reply
        0
        • D DalePennington

          No that is desktop level integration (as designed in the QtVirtualKeyboard deployment documentation). I can do that already, but then the virtual keyboard takes over the entire screen.
          Application level integration appears to involve manually instantiating an InputPanel in your all. QtVirtualKeyboard has a qml based example of this, but not a QWidget based example.

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by Pl45m4
          #4

          @DalePennington

          Ahh. So you need the keyboard / input panel to be a QWidget itself not used as a separate module together in a QWidget application?!

          I dont know if there's anything like that :/

          @DalePennington said in Looking for Widget based QtVirtualKeyboard example:

          I will end up tweaking the QtVirtualKeyboard source

          Check if you still meet your license requirement then :)


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          D 1 Reply Last reply
          0
          • Pl45m4P Pl45m4

            @DalePennington

            Ahh. So you need the keyboard / input panel to be a QWidget itself not used as a separate module together in a QWidget application?!

            I dont know if there's anything like that :/

            @DalePennington said in Looking for Widget based QtVirtualKeyboard example:

            I will end up tweaking the QtVirtualKeyboard source

            Check if you still meet your license requirement then :)

            D Offline
            D Offline
            DalePennington
            wrote on last edited by
            #5

            @Pl45m4
            The keyboard itself might still be the QML keyboard inside the QtVirtualKeyboard, but for Application level integration that app apparently instantiates the InputPanel instead of having the plugin do it (or so the documentation reads).
            What I am looking for is an example of that to see what really needs to be done.

            Pl45m4P 1 Reply Last reply
            0
            • D DalePennington

              @Pl45m4
              The keyboard itself might still be the QML keyboard inside the QtVirtualKeyboard, but for Application level integration that app apparently instantiates the InputPanel instead of having the plugin do it (or so the documentation reads).
              What I am looking for is an example of that to see what really needs to be done.

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote on last edited by
              #6

              @DalePennington

              I fear, I cant help you in this case, but I found this (probably you've read this before):

               disable-desktop
              

              Remarks
              By default, the desktop integration is enabled when the target environment is X11 or Windows desktop. With this option, the
              desktop integration can be disabled.

              Note: For embedded integration, where the InputPanel is instantitated by the application, there is no need to use this option explicitly. The virtual keyboard will not create the desktop input panel if the application creates InputPanel before the focus is set to an input field.

              (https://doc.qt.io/qt-5/qtvirtualkeyboard-build.html#advanced-configuration-options)


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              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