aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktext/data/qtbug_106205.qml
blob: e4db73557aa145679477d4c307c01e47eca5d9a3 (plain)
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
            }
        }
    }
}