有一些Defination让我感到困惑......我找到了一个Text的anchors.baseline与Rectangle的不同.为什么?什么是基线的定义?谢谢 ...
Item {
width: 400; height: 200
Rectangle {
y:20
id: rectangle
width: 80; height: 80
color: "red"
}
Text {
text: "Hello World!"
anchors.baseline: rectangle.baseline
anchors.left: rectangle.right
}
}
Run Code Online (Sandbox Code Playgroud)
Rectangle的基线是top,Text的基线是底部?