当游戏结束时,我希望弹出以下内容:
Popup {
id: popup
anchors.centerIn: parent
Text{
text: "Game Over!!" + "\n\n" + "New High Score: "+ score_val
anchors.centerIn: canvas
color: "grey"
font.pixelSize: 70
font.family: gill.name
}
modal: true
focus: true
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
}
一切都很好,但背景是白色的,似乎没有背景颜色属性,我该怎么办?