Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.6
- import QtQuick.Controls 2.0
- Rectangle {
- color: "blue"
- width: 560
- implicitHeight: column.implicitHeight
- Column {
- id: column
- width: parent.width
- Text {
- width: parent.width
- font.pixelSize: 24
- text: "Title"
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- padding: 16
- }
- Label {
- anchors { left: parent.left; right: parent.right }
- font.pixelSize: 16
- color: "white"
- horizontalAlignment: Text.AlignHCenter
- text: "some text"
- padding: 16
- background: Rectangle { color: "green" }
- }
- Label {
- anchors { left: parent.left; right: parent.right }
- font.pixelSize: 12
- horizontalAlignment: Text.AlignHCenter
- text: "footer"
- padding: 16
- background: Rectangle { color: "red" }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement