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

Touchscreen: Discrepancy between QML TextInput and QLineEdit behaviour with Windows virtual keyboard

    XMLWordPrintable

Details

    • Windows

    Description

      See attached example and animated GIFs.

      EDIT: Originally reported against Qt 5.15, but the same behaviour is observed on Qt 6.2. To run the example in Qt 6.2, add QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL); before the Qt Quick code.

       

      QLineEdit behaviour (Good):

      • Upon launch, a single tap is sufficient to bring up the native virtual keyboard
      • Activating a QLineEdit with password echo mode brings up the native virtual keyboard

      TextInput behaviour (Bad):

      • Upon launch, 2 taps are required to bring up the native virtual keyboard. (Note: The first attempt needs 2 taps; subsequent attempts only need 1 tap)
      • Activating a TextInput with password echo mode fails to bring up the native virtual keyboard – it even CLOSES the native virtual keyboard if it's already open

      Attachments

        1. image-2024-09-17-15-11-39-662.png
          58 kB
          Miguel Costa
        2. singletap-vs-doubletap.gif
          1.06 MB
          Sze Howe Koh
        3. TextInput-password-no-keyboard.gif
          1.14 MB
          Sze Howe Koh
        4. TouchKeyboardStudy.zip
          2 kB
          Sze Howe Koh

        Issue Links

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

          Activity

            People

              fredericl Frederic Lefebvre
              skoh-qt Sze Howe Koh
              Votes:
              5 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews