DropArea QML Type
영역에서 끌어서 놓기 처리를 지정하는 데 사용합니다. 더 보기...
Import Statement: | import QtQuick |
Inherits: |
속성
- containsDrag : bool
- drag
- drag.source : QtObject
- keys : stringlist
신호
- dropped(DragEvent drop)
- entered(DragEvent drag)
- exited()
- positionChanged(DragEvent drag)
상세 설명
드롭 영역은 다른 항목을 드래그할 때 이벤트를 수신하는 보이지 않는 항목입니다.
Drag 첨부 속성을 사용하여 항목을 드래그할 때 DropArea에 알릴 수 있습니다.
keys 속성은 일치하는 키가 포함되지 않은 드래그 이벤트를 필터링하는 데 사용할 수 있습니다.
drag.source 속성은 드래그 이벤트의 소스에게 드래그 대상에 대한 드롭의 수신자로 전달됩니다.
Qt Quick 예제 - 드래그 앤 드롭을참조하세요 .
속성 문서
drag.source : QtObject |
이 속성은 드래그의 소스를 보유합니다.
keys : stringlist |
이 속성에는 DropArea 에서 허용할 드래그 키 목록이 저장됩니다.
키가 나열되지 않으면 DropArea 은 모든 드래그 소스의 이벤트를 수락하며, 그렇지 않으면 드래그 소스에 호환되는 키가 하나 이상 있어야 합니다.
QtQuick::Drag::keys 를참조하세요 .
신호 문서
exited() |
이 신호는 드래그가 DropArea 의 바운드를 벗어날 때 발생합니다.
참고: 해당 핸들러는 onExited
입니다.
positionChanged(DragEvent drag) |
이 신호는 drag 의 위치가 변경되었을 때 발생합니다.
참고: 해당 핸들러는 onPositionChanged
입니다.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.