QML positioned elements

1. anchors.fill: parent element fills the parent element

         anchors.margins set margins

2. anchors.left: parent.left aligns the parent element to the left. anchors.leftMargin sets the left margin

3. anchors.left: parent.right The element is right-aligned to the parent element

4. anchors.horizontalCenter: The parent.horizontalCenter element aligns the parent element horizontally

5. anchors.centerIn: The parent element is centered in the parent element

6. anchors.verticalCenter: parent.verticalCenter The element is placed vertically to the centered parent element

 

Rotate elements, through the attribute rotation

Guess you like

Origin blog.csdn.net/liujing_sy/article/details/100160857