aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktextedit/data/inFlickable.qml
blob: 183ddd670115bd2db7cb36400678f76360ba5592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import QtQuick 2.0

Flickable {
    id: flick
    width: 320; height: 120; contentHeight: text.height
    TextEdit {
        id: text
        objectName: "text"
        font.pixelSize: 20
        text: "several\nlines\nof\ntext\n-\ntry\nto\nflick"
    }
    Text {
        color: "red"
        parent: flick // stay on top
        anchors.right: parent.right
        text: flick.contentY.toFixed(1)
    }
}