7
한 번 드롭 대상이 활성화되면 커서가 원래 드롭 대상 위에있는 다른 놓기 대상으로 이동하더라도 여전히 활성 상태입니다.오버랩 드롭 대상을 올바르게 구현하는 방법은 무엇입니까?
다음은 QML 데모입니다. 파일을 회색 및 파란색 영역에 놓으십시오. 파란색은 절대로 활성화되지 않습니다.
import QtQuick 2.1
Rectangle {
color: "grey"
width: 300
height: 300
DropArea {
anchors.fill: parent
onDropped: status.text = "Dropped on Grey";
}
Rectangle {
color: "blue"
anchors.fill: parent
anchors.margins: 80
DropArea {
anchors.fill: parent
# Never active!
onDropped: status.text = "Dropped on Blue"
}
}
Text {
x: 10
y: 10
id: status
text: "Nothing dropped"
}
}
어떻게하면 회색 및 파란색 직사각형으로 떨어 뜨릴 수 있습니까?
이 해결되었습니다 ?? – ustulation