Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.03 KB | None | 0 0
  1. import QtQuick 2.6
  2. import QtQuick.Controls 2.0
  3.  
  4. Rectangle {
  5.     color: "blue"
  6.     width: 560
  7.     implicitHeight: column.implicitHeight
  8.     Column {
  9.         id: column
  10.         width: parent.width
  11.         Text {
  12.             width: parent.width
  13.             font.pixelSize: 24
  14.             text: "Title"
  15.             horizontalAlignment: Text.AlignHCenter
  16.             verticalAlignment: Text.AlignVCenter
  17.             padding: 16
  18.         }
  19.         Label {
  20.             anchors { left: parent.left; right: parent.right }
  21.             font.pixelSize: 16
  22.             color: "white"
  23.             horizontalAlignment: Text.AlignHCenter
  24.             text: "some text"
  25.             padding: 16
  26.             background: Rectangle { color: "green" }
  27.         }
  28.  
  29.         Label {
  30.             anchors { left: parent.left; right: parent.right }
  31.             font.pixelSize: 12
  32.             horizontalAlignment: Text.AlignHCenter
  33.             text: "footer"
  34.             padding: 16
  35.             background: Rectangle { color: "red" }
  36.         }
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement