【1】左键拖动
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton
}
【2】禁止拖动
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton
}
【1】左键拖动
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton
}
【2】禁止拖动
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton
}