Anchoring in nokia



  • it is unlogical because this code(viewer.showExpandend()):
    @
    Rectangle
    { //parte comune a tutti gli sfondi
    color: "gold"
    id: container
    Image
    {
    id: indicatoreAlto
    source: "../LebendigeLieder/sopra.png"
    anchors { top: container.top; right: container.right }
    scale: 0.3
    }
    }
    @
    returns an image that is not anchored on the right or top part of the screen of the simulator. how to fix? i want "image.png" is anchored on the left-top part of the screen of a phone.



  • The picture will show at the upper right corner if you set
    scale: 1.0


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.