import QtQuick 2.6 import QtQuick.Window 2.2 Window { id: window width: 300 height: 300 visible: true Text { text: row.implicitWidth } Row { id: row anchors.centerIn: parent Text { text: "First" width: parent.width / 2 Rectangle { z: -1; border.width: 1; anchors.fill: parent} } Text { text: "Second" width: parent.width / 2 Rectangle { z: -1; border.width: 1; anchors.fill: parent} } } }