import QtQuick 2.5 import QtQuick.Controls 1.4 import QtQuick.Window 2.2 Window { id: window visible: true width: 640 height: 960 color: Qt.inputMethod.visible ? "green" : "blue" TextInput { id: inputfoo width: 200 height: 30 anchors.centerIn: parent text: "Foobidoo" } }