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)
詳細説明
DropAreaは、他のアイテムがその上にドラッグされたときにイベントを受け取る不可視のアイテムです。
Drag attachedプロパティを使用すると、アイテムがDropAreaの上にドラッグされたときに、DropAreaに通知することができます。
keys プロパティは、一致するキーを含まないドラッグ イベントをフィルタリングするために使用できます。
drag.source プロパティは、ドラッグ ターゲットへのドロップの受信者として、ドラッグ イベントのソースに通知されます。
Qt Quick Examples - Drag and Dropも参照してください 。
プロパティの説明
drag.source : QtObject |
このプロパティは、ドラッグのソースを保持します。
keys : stringlist |
このプロパティは、DropArea が受け付けるドラッグ キーのリストを保持します。
キーがリストされていない場合、DropArea は任意のドラッグ・ソースからのイベントを受け入れます。そうでない場合、ドラッグ・ソースは少なくとも 1 つの互換性のあるキーを持っている必要があります。
QtQuick::Drag::keysも参照してください 。
シグナルの説明
exited() |
このシグナルは、ドラッグがDropArea の境界から出たときに発せられる。
注 : 対応するハンドラはonExited です。
positionChanged(DragEvent drag) |
このシグナルは、drag の位置が変化したときに発せられます。
注 : 対応するハンドラはonPositionChanged です。
© 2026 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.