0

As per the definition of translationY: The translation is mostly useful for animations as it doesn't affect the actual laid out position of the visual node. This translation is added after the node has been laid out so it doesn't affect layout in any way

Is there any property that actually affect the position of the visual node?

What I want is the text of the label to start from its top border. If I use translationY, it touches the top border but the size of the label remains the same.

KKa
  • 408
  • 4
  • 19

1 Answers1

0

Your question is thin on specifics but if you use AbsoluteLayout the members of AbsoluteLayoutProperties can affect the laid out position of a visual node as in the following QML:

Container {
    layout: AbsoluteLayout {}

    Label {
        text: "Label"
        layoutProperties: AbsoluteLayoutProperties {
            positionX: 100
            positionY: 100   
        }               
    }   
}
Richard
  • 8,920
  • 2
  • 18
  • 24