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

Virtual keyboard appears on TextField destruction (specific case)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.5.3, 6.6.0
    • None
    • MS Surface Pro X with no external keyboard connected
    • Windows

    Description

      Virtual keyboard appears on TextField destruction.

      Sample code:

      import QtQuick
      import QtQuick.Controls
      
      Window {
          width: 300
          height: 200
          visible: true
      
          Loader {
              id: textFieldLoader
              anchors.centerIn: parent
              sourceComponent: TextField {
                  placeholderText: 'TextField'
                  Component.onCompleted: forceActiveFocus()
              }
          }
      
          TapHandler {
              onTapped: textFieldLoader.active = !textFieldLoader.active
          }
      }
      

      Can be reproduced on MS Touch Screen device, like MS Surface Pro X with no external keyboard connected.

      Steps to reproduce:
      1. Close system VKB if opened
      2. Launch the sample
      3. Click outside the TextField
      4. Observe system VKB

      Actual results: VKB appears
      Expected results: VKB shouldn't appear

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            studiosus Vladimir Belyavsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes