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

The virtual keyboard pops up and then automatically retracts.

XMLWordPrintable

      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.

        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
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes