import QtQuick 2.6 import QtQuick.Controls 2.0 ApplicationWindow { id: root width: 300 height: 480 visible: true /* This absolutely does not make any practical sense, * I just try to make it work and see what's * gonna happen */ TextField { text: dialogue.exit_code placeholderText: qsTr("exit code") anchors.centerIn: parent onTextChanged: dialogue.exit_code = text } }