属性
Text项目的style属性可以设置文本的样式。
支持的文本样式有:
Text.Normal(默认)Text.OutlineText.RaisedText.Sunken
示例
import QtQuick
Row{
spacing: 10
padding: 10
Text {
font.pointSize: 40
text: "Normal"
}
Text {
font.pointSize: 40
text: "Raised"
color: "#FFAABB"
style: Text.Raised
styleColor: "black"
}
Text {
font.pointSize: 40
text: "Outline"
color: "white"
style: Text.Outline
styleColor: "red"
}
Text{
font.pointSize: 40
text: "Sunken"
color: "lightgrey"
style: Text.Sunken
styleColor: "black"
}
}








![【重磅推出】★全部CFA FRM CAIA ESG原創資料整理[2024版+2025版更新中]](https://i-blog.csdnimg.cn/direct/306d5fb420634612ae21d495a0495bea.jpeg#pic_center)











