import QtQuick 2.13
import QtQuick.Controls 2.5
import QtQuick.Templates 2.12 as T
import "."
Rectangle{
width: 300
height: 300
color: "#ff909090"
MouseArea{
anchors.fill: parent
onClicked: {
testPop.open()
}
}
Popup{
id: testPop
padding: 0
width: 60
height: 60
modal: true
closePolicy: Popup.CloseOnPressOutside || Popup.CloseOnEscape
x: 50
y: 50
T.Overlay.modal: Rectangle {
color: "#90900000"
}
}
}
qml Popup弹出后,阻塞 界面背景色设置
最新推荐文章于 2024-06-03 17:57:37 发布