title: How to show cursor on TextInput using forwardTo in QML
body: <p>I have two elements on screen, one Rectangle and one TextInput.When the activefocus is set on the rectangle and I type anything, I need to get the typed input to the TextInput</p>
  
  <p>For this, I have used <code>curRect.Keys.forwardTo = [curTextbox];</code></p>
  
  <p>It works properly, but i also want to see the cursor while the focus is on the rectangle.</p>
  
  <p><a href="http://qt-project.org/doc/qt-4.8/qml-textinput.html#cursorVisible-prop" rel="nofollow">http://qt-project.org/doc/qt-4.8/qml-textinput.html#cursorVisible-prop</a></p>
  
  <p>In the above link by QT, it says </p>
  
  <blockquote>
    <p>that It can be set directly in script, for example if a KeyProxy
    might forward keys to it and you desire it to look active when this
    happens (but without actually giving it active focus).</p>
  </blockquote>
  
  <p>But that does not happen in my case.</p>
  
  <p>Can anyone explain to me why that is and how I can achieve my goal, i.e. to show the cursor even when the <em>activeFocus</em> is on the Rectangle?</p>
  
  <p>Even if the cursor is shown at the time of entering the text it would be great.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <pre><code>import QtQuick 1.0
  
  FocusScope{
  
      width: 400
      height: 400
      TextInput {Rectangle{anchors.fill: parent;color:"#66ff0000"}
          id: mytext
          anchors.top:parent.top
          cursorVisible: true
          width: rect.width
          MouseArea{
              anchors.fill: parent;
              onClicked: mytext.forceActiveFocus()
          }
          Keys.onDownPressed: {
              mytext2.forceActiveFocus();
          }
      }
      TextInput {Rectangle{anchors.fill: parent;color:"#66ff0000"}
          id: mytext2
          anchors.top:mytext.bottom
          cursorVisible: true
          width: rect.width
          MouseArea{
              anchors.fill: parent;
              onClicked: mytext2.forceActiveFocus()
          }
  
          Keys.onUpPressed: {
              mytext.forceActiveFocus();
          }
      }
      Rectangle {
          id:rect
          width: 360
          height: 360
          color:rect.activeFocus?"#6600ff00":"#660000ff"
          focus: true
          Keys.forwardTo: mytext
          MouseArea{
              anchors.fill: parent;
              onClicked: rect.forceActiveFocus()
          }
      }
      Component.onCompleted: rect.forceActiveFocus();
  }
  </code></pre>
  
  <p>Thanks in advance.</p>