Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132154

The virtual keyboard pops up and then automatically retracts.

    XMLWordPrintable

Details

    Description

      On Ubuntu 22.04, I compiled qt-everywhere-src-6.7.0.tar.xz and used the following line in my program to enable the Qt virtual keyboard when input is required:
      qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));

      However, I encountered an issue where the keyboard automatically retracts after popping up when touching an input field. This behavior only occurs in a touch environment.

      By monitoring Qt.inputMethod.visible, I observed that it changes to true and then immediately back to false. This issue can be reproduced at https://plcnexttest.phoenixcon.com/ehmi/hmiapp.html

      1. Navigate to Dialogs -> dialog login.
      2. Try entering the username and password.

      Attachments

        1. ubuntu_canvas_input.mp4
          7.43 MB
          Chou aaron
        2. qtwebview_example.tar.gz
          30 kB
          Chou aaron
        3. build_sample_and_phenomenon.mp4
          9.43 MB
          Chou aaron

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jakoivik Jarkko Koivikko
              aaron-chou Chou aaron
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes