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")
} }
Label { Column {
id: firstLabel id: column
anchors { width: parent.width
horizontalCenter: parent.horizontalCenter spacing: 10
top: parent.top
Label {
id: firstLabel
width: parent.width
text: qsTr("Argh")
color: Theme.secondaryHighlightColor
font.pixelSize: Theme.fontSizeExtraLarge
horizontalAlignment: Text.AlignHCenter
} }
text: qsTr("Argh")
color: Theme.secondaryHighlightColor
font.pixelSize: Theme.fontSizeExtraLarge
}
TextField { TextField {
id: secondField id: secondField
width: parent.width width: parent.width
anchors { placeholderText: "Enter text"
horizontalCenter: parent.horizontalCenter font.pixelSize: Theme.fontSizeLarge
verticalCenter: parent.verticalCenter font.bold: true
}
TextField {
id: thirdField
width: parent.width
placeholderText: "Enter text again"
font.pixelSize: Theme.fontSizeLarge
font.bold: true
} }
placeholderText: "Enter text"
font.pixelSize: Theme.fontSizeLarge
font.bold: true
} }
} }
} }

Loading…
Cancel
Save