aboutsummaryrefslogtreecommitdiffstats
path: root/doc/qtdesignstudio/examples/loginui1/Screen01.ui.qml
blob: bdd37b0415f9641f56b4fe1a851febe029f66f15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import QtQuick 2.12
import loginui1 1.0

Rectangle {
    width: Constants.width
    height: Constants.height
    color: "#fdfdfd"

    Text {
        id: pageTitle
        text: qsTr("Qt Account")
        font.pixelSize: 24
        anchors.verticalCenterOffset: -153
        anchors.horizontalCenterOffset: 1
        anchors.centerIn: parent
        font.family: Constants.font.family
    }

    Image {
        id: logo
        x: 13
        y: 0
        width: 100
        height: 100
        source: "qt_logo_green_64x64px.png"
        fillMode: Image.PreserveAspectFit
    }

    PushButton {
        id: loginButton
        x: 262
        y: 343
        width: 120
        height: 40
        text: qsTr("Log In")
    }

    PushButton {
        id: registerButton
        x: 262
        y: 389
        width: 120
        height: 40
        text: qsTr("Create Account")
    }
}