Hi Folks, need some help about app studio

623
1
Jump to solution
07-01-2020 10:41 PM
x_d
by
New Contributor III
I want that my app get adjust according to different device
Tags (1)
0 Kudos
1 Solution

Accepted Solutions
ErwinSoekianto
Esri Regular Contributor

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
        }

View solution in original post

1 Reply
ErwinSoekianto
Esri Regular Contributor

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
        }