1.防止鼠标穿透

MouseArea{
anchors.fill: parent;
onClicked: {};
onReleased: {};
onPressed: {};
}

2.允许穿透,控件增加enable属性

05-04 10:26