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

Setting focus to false on a TextInput and TextEdit does not remove input panel

    XMLWordPrintable

Details

    Description

      Given the following example:

      import QtQuick 2.0
      
      Column {
          height: 400
          width: 400
          spacing: 10
      
          TextEdit {
              id: t1
              width: parent.width
              height: 40
          }
      
          Rectangle {
              width: parent.width
              height: 40
      
              color: "red"
              MouseArea {
                  anchors.fill: parent
                  onClicked: t1.focus = !t1.focus
              }
          }
      }
      

      When clicking on the red rectangle for the first time, t1 gets activeFocus set and the input panel appears. The second press on the rectangle sets t1 activeFocus to false but the input panel is not removed.

      Attachments

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

        Activity

          People

            aalpert Alan Alpert
            jombi Zsombor Egri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes