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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
import QtQuick 2.0
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4
GridLayout {
id:homePage
rows:2
width: parent.width
height: parent.height - 70
anchors.fill: parent
Layout.minimumHeight: 400
anchors.bottom:parent.bottom
Item {
width:homePage.width
height:homePage.height / 2
Layout.row: 0
Rectangle {
id:topScreen
color:"#ffffff"
border.width: 0
anchors.fill: parent
GridLayout {
id:topScreenGridLayout
rows:3
anchors.centerIn: topScreen
Image {
id: image1
Layout.row:0
height: parent.height /3
fillMode: Image.PreserveAspectFit
anchors.horizontalCenter: topScreenGridLayout.horizontalCenter
source: "ressources/ressources/item_banch_icon.png"
}
Image {
id: image2
Layout.row:1
height: parent.height /3
fillMode: Image.PreserveAspectFit
anchors.horizontalCenter: topScreenGridLayout.horizontalCenter
source: "ressources/ressources/text_name_config_tryba.png"
}
Button {
Layout.row: 2
height:parent.height /3
anchors.horizontalCenter: topScreenGridLayout.horizontalCenter
style: ButtonStyle {
background: Image {
source:"ressources/ressources/btn_green_lg.png"
}
label: Text {
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
color: "#ffffff"
text:qsTr("COMMENCER LA CONFIGURATION")
font.bold: true
font.pointSize: 20
}
}
}
}
}
anchors.top: parent.top
}
Item {
id:botScreen
width: homePage.width
height: homePage.height / 2
anchors.bottom:parent.bottom
Layout.row: 1
Rectangle {
color:"#c5c5c7"
border.width: 0
anchors.fill: parent
}
}
} |
Partager