Utilisation des layout_0

main
Alexis Drai 2 years ago
parent 7bc7309658
commit 70af64f35b

@ -3,8 +3,6 @@ import Sailfish.Silica 1.0
Page { Page {
id: page id: page
// The effective value will be restricted by ApplicationWindow.allowedOrientations
allowedOrientations: Orientation.All allowedOrientations: Orientation.All
SilicaFlickable { SilicaFlickable {
@ -21,7 +19,7 @@ Page {
Rectangle { Rectangle {
id: baseRect id: baseRect
color: "red" color: "#facccc"
anchors.fill: parent anchors.fill: parent
} }
@ -29,27 +27,35 @@ Page {
title: qsTr("UI Template") title: qsTr("UI Template")
} }
Column {
id: column
width: parent.width
spacing: 10
Label { Label {
id: firstLabel id: firstLabel
anchors { width: parent.width
horizontalCenter: parent.horizontalCenter
top: parent.top
}
text: qsTr("Argh") text: qsTr("Argh")
color: Theme.secondaryHighlightColor color: Theme.secondaryHighlightColor
font.pixelSize: Theme.fontSizeExtraLarge font.pixelSize: Theme.fontSizeExtraLarge
horizontalAlignment: Text.AlignHCenter
} }
TextField { TextField {
id: secondField id: secondField
width: parent.width width: parent.width
anchors {
horizontalCenter: parent.horizontalCenter
verticalCenter: parent.verticalCenter
}
placeholderText: "Enter text" placeholderText: "Enter text"
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.bold: true font.bold: true
} }
TextField {
id: thirdField
width: parent.width
placeholderText: "Enter text again"
font.pixelSize: Theme.fontSizeLarge
font.bold: true
}
}
} }
} }

Loading…
Cancel
Save