import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") RowLayout { anchors.fill: parent TextArea { Layout.fillHeight: true Layout.fillWidth: true onFocusChanged: console.log("TEXTAREA FOCUS", focus) } Button { Layout.fillHeight: true Layout.fillWidth: true onFocusChanged: console.log("BUTTON FOCUS", focus) } } }