Skip to content

Commit

Permalink
修改center
Browse files Browse the repository at this point in the history
  • Loading branch information
msly committed Oct 9, 2014
1 parent d5b57a4 commit 429ae28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meet_qt_5/qt5qt5_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Image {
}
```

为了把风车放在中间的位置,我们使用了一个复杂的属性,称之为锚。锚定允许你指定几何对象与父对象或者同级对象之间的位置关系。比如放置我在另一个元素中间(anchors.centerIn:parent).有左边(left),右边(right),顶部(top),底部(bottom),中央(cengerIn),填充(fill),垂直中央(verticalCenter)和水平中央(horizontalCenter)来表示元素之间的关系。确保他们能够匹配,锚定一个对象的左侧顶部的一个元素这样的做法是没有意义的。所以我们设置风车在父对象background的中央。
为了把风车放在中间的位置,我们使用了一个复杂的属性,称之为锚。锚定允许你指定几何对象与父对象或者同级对象之间的位置关系。比如放置我在另一个元素中间(anchors.centerIn:parent).有左边(left),右边(right),顶部(top),底部(bottom),中央(centerIn),填充(fill),垂直中央(verticalCenter)和水平中央(horizontalCenter)来表示元素之间的关系。确保他们能够匹配,锚定一个对象的左侧顶部的一个元素这样的做法是没有意义的。所以我们设置风车在父对象background的中央。

**注意**

Expand Down

0 comments on commit 429ae28

Please sign in to comment.