title: QML Virtual keyboard Hide button not working
body: <p>I am having a problem if I click on keyboard <strong>hide</strong> button .Following is the code :</p>
  
  <pre><code>import QtQuick 2.6
  import QtQuick.Window 2.2
  import QtQuick.Controls 2.2
  import QtQuick.VirtualKeyboard 2.2
  
  Window {
      visible: true
      width: 600
      height: 500
      title: qsTr("Hello World")
  
      TextField {
          id: textfield
          anchors.bottom:(inputPanel.visible) ? inputPanel.top : parent.bottom
          color: "#2B2C2E"
          cursorVisible: activeFocus
          selectionColor: Qt.rgba(0.0, 0.0, 0.0, 0.15)
          selectedTextColor: color
      }
  
      InputPanel {
          id: inputPanel
          z: 89
          anchors.bottom:parent.bottom
          anchors.left: parent.left
          anchors.right: parent.right
  
          visible: Qt.inputMethod.visible //** Warning here 
  
      }
  }
  </code></pre>
  
  <p><strong><em>Below are the use-cases:</em></strong></p>
  
  <ol>
  <li><p>If i click on <strong>TextField</strong> keyboard pops as expected but when I click on hide keyboard button it's <strong>not hiding</strong>.</p></li>
  <li><p>If i click on <strong>TextField</strong> keyboard pops as expected, next if I double-click on <strong>TextField</strong>  and then click on hide keyboard button it's <strong>hiding</strong>.</p></li>
  </ol>
  
  <p>I  am also getting  a warning as :</p>
  
  <blockquote>
    <p>QML InputPanel: Binding loop detected for property "visible"</p>
  </blockquote>
  
  <p>Please suggest.</p>