0
点赞
收藏
分享

微信扫一扫

第4篇 基础(四)QML属性 之 锚

穆风1818 2022-02-07 阅读 35

锚属性说明:

锚定允许你指定⼏何对象与⽗对象或者同级对象之间的位置关系。

1、元素中间

anchors.centerIn: parent

2、底部

anchors.bottom: parent.bottom

 

3、左边

anchors.left: parent.left

 4、右边

anchors.right: parent.right

 5、垂直中央

anchors.verticalCenter: parent.verticalCenter

 6、水平中央

anchors.horizontalCenter: parent.horizontalCenter

举报

相关推荐

0 条评论