1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
import QtQuick import QtQuick.Controls Item { id: root objectName: "root" visible: true anchors.fill: parent property string text: "" ScrollView { anchors.fill: parent Rectangle { x: 100 width: 100 height: 30 color: "lightgray" Text { objectName: "textOutsideViewport" text: root.text width: 50 clip: true } } } }