import QtQuick 2.5 import QtQuick.Window 2.2 Window { id: window visible: true width: 640 height: 960 color: Qt.inputMethod.visible ? "green" : "blue" }