Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Virtual Keyboard behaviour in WebAssembly
Forum Updated to NodeBB v4.3 + New Features

Virtual Keyboard behaviour in WebAssembly

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
9 Posts 5 Posters 1.1k 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.
  • RenioR Offline
    RenioR Offline
    Renio
    wrote on last edited by Renio
    #1

    For my application, compiled in WebAssembly, I need to manage the virtual keyboard on mobile device (i.e. smartphone or tablet).
    I posted a similar question a few days ago with title "Virtual Keyboard and WebAssembly".
    I'm studying the basiclayouts example compiled in webassembly.
    Cattura.PNG
    In Chrome on a Motorola smartphone device, when I tap on Button 1, the keyboard appear.
    Tap on Button 2 and the virtual keyboard still visible.
    Tap on line edit and virtual keyboard still visible.
    Tap on Button 1 and the virtual keyboard disappear.
    Tap on Button 1 and the virtual keyboard don't showed.
    Tap on line edit and the virtual keyboard appear again.
    I don't understud when the virtual keyboard is showed and its behaviour.
    When I tap on any button the virtual keyboard don't must showed.
    The focus policy of bottons and line edit are set on StrongFocus.
    The focus policy dialog is set on NoFocus.
    Which signal/event are used to show/hide the virtual keyboard?

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      Do you layout your GUI with QML or widgets?

      RenioR 1 Reply Last reply
      0
      • lorn.potterL Offline
        lorn.potterL Offline
        lorn.potter
        wrote on last edited by
        #3

        Which version of Qt are you using? There are improvements for the wasm input context in 6.4, so the native virtual keyboard on mobile is working better.

        Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
        Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

        RenioR 1 Reply Last reply
        0
        • JoeCFDJ JoeCFD

          Do you layout your GUI with QML or widgets?

          RenioR Offline
          RenioR Offline
          Renio
          wrote on last edited by
          #4

          @JoeCFD The Qt Example use Widgets

          JoeCFDJ 1 Reply Last reply
          0
          • lorn.potterL lorn.potter

            Which version of Qt are you using? There are improvements for the wasm input context in 6.4, so the native virtual keyboard on mobile is working better.

            RenioR Offline
            RenioR Offline
            Renio
            wrote on last edited by
            #5

            @lorn-potter I use Qt 6.4.0-beta2 downloded with MaintenanceTool, with Emscripten 3.1.10

            1 Reply Last reply
            0
            • nadimnadafN Offline
              nadimnadafN Offline
              nadimnadaf
              wrote on last edited by
              #6
              This post is deleted!
              jsulmJ 1 Reply Last reply
              0
              • nadimnadafN nadimnadaf

                This post is deleted!

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

                @nadimnadaf Why did you put your response here?
                This is your thread, right? https://forum.qt.io/topic/138229/qt-5-8-0-which-module-is-used-to-show-a-webpage

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

                nadimnadafN 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @nadimnadaf Why did you put your response here?
                  This is your thread, right? https://forum.qt.io/topic/138229/qt-5-8-0-which-module-is-used-to-show-a-webpage

                  nadimnadafN Offline
                  nadimnadafN Offline
                  nadimnadaf
                  wrote on last edited by
                  #8

                  @jsulm Sorry For That , I will Delete this.

                  1 Reply Last reply
                  0
                  • RenioR Renio

                    @JoeCFD The Qt Example use Widgets

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

                    @Renio I have not tried Qt6. In Qt5, I have to use qml for virtual keyboard display. In mobile(Android), native keyboard is used. On Linux, Qt keyboard is applied. No issues like yours.
                    keyboard needs to be hidden when focus is false on a line edit or text input.

                    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