Truptimayee,
The x and y for App and Image background of the Page are not necessary, they default to 0,0 unless there are Layout and Anchors that are set.
On the button, we would recommend to use Anchor or Layout as outline in this QML documentation, Use Case - Positioners and Layouts In QML | Qt 5.15
For example, the button could just use anchors.centerIn: parent,
Button {
id: button
anchors.centerIn: parent
width: 284
height: 40
text: qsTr("Login")
spacing: 0
}
Truptimayee,
The x and y for App and Image background of the Page are not necessary, they default to 0,0 unless there are Layout and Anchors that are set.
On the button, we would recommend to use Anchor or Layout as outline in this QML documentation, Use Case - Positioners and Layouts In QML | Qt 5.15
For example, the button could just use anchors.centerIn: parent,
Button {
id: button
anchors.centerIn: parent
width: 284
height: 40
text: qsTr("Login")
spacing: 0
}