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";
}
}
}
}