Ubuntu Pastebin

Paste from michal at Tue, 13 Jan 2015 11:06:07 +0000

Download as text
 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
29
30
31
32
33
34
35
36
37
38
39
40
41
import QtQuick 2.3
import QtQuick.Layouts 1.1

Item {
    width: 500
    height: 500

    Rectangle {
        anchors.fill: column
        border.color: "black"
        border.width: 2
    }

    ColumnLayout {
        id: column
        anchors.fill: parent
        anchors.margins: 100

        Text {
            id: text1
            anchors { left: parent.left; right: parent.right }
            text: ""
        }

        Text {
            id: text2
            anchors { left: parent.left; right: parent.right }
            text: ""
            horizontalAlignment: Text.AlignRight
        }

        Timer {
            interval: 1000
            running: true
            onTriggered: {
                text1.text = "Lorem ipsum something blah";
                text2.text = "Lorem ipsum something else blah";
            }
        }
    }
}
Download as text