DragArea QML Type
| Import Statement: | import org.kde.draganddrop |
Properties
- defaultAction : Qt::DropAction
- delegate : Item
- delegateImage : var
- dragActive : bool
- enabled : bool
- mimedata : MimeData
- source : Item
- startDragDistance : int
- supportedActions : Qt::DropActions
- target : Item
Signals
- dataChanged()
- defaultActionChanged()
- delegateChanged()
- delegateImageChanged()
- dragActiveChanged()
- dragStarted()
- drop(int action)
- enabledChanged()
- sourceChanged()
- startDragDistanceChanged()
- supportedActionsChanged()
- targetChanged()
Detailed Description
Property Documentation
defaultAction : Qt::DropAction
The default action will be performed during a drag when no modificators are pressed.
delegate : Item
The delegate is the item that will be displayed next to the mouse cursor during the drag and drop operation. It usually consists of a large, semi-transparent icon representing the data being dragged.
delegateImage : var
An image to be used as delegate.
If present, it overrides the delegate property.
It can be either a QImage or a QIcon.
dragActive : bool
Whether a drag currently originates from this drag area.
enabled : bool
If false no drag operation will be generate
mimedata : MimeData
the mime data of the drag operation
See also MimeData.
source : Item
The QML element that is the source of the resulting drag and drop operation. This can be defined to any item, and will be available to the DropArea as event.data.source
startDragDistance : int
distance in pixel after which a drag event will get started
supportedActions : Qt::DropActions
Supported operations, a combination of:
- Qt.CopyAction
- Qt.MoveAction
- Qt.LinkAction
- Qt.ActionMask
- Qt.IgnoreAction
- Qt.TargetMoveAction
target : Item
Signal Documentation
dataChanged()
Note: The corresponding handler is onDataChanged.
defaultActionChanged()
Note: The corresponding handler is onDefaultActionChanged.
delegateChanged()
Note: The corresponding handler is onDelegateChanged.
delegateImageChanged()
Note: The corresponding handler is onDelegateImageChanged.
dragActiveChanged()
Note: The corresponding handler is onDragActiveChanged.
dragStarted()
Note: The corresponding handler is onDragStarted.
drop(int action)
Note: The corresponding handler is onDrop.
enabledChanged()
Note: The corresponding handler is onEnabledChanged.
sourceChanged()
Note: The corresponding handler is onSourceChanged.
startDragDistanceChanged()
Note: The corresponding handler is onStartDragDistanceChanged.
supportedActionsChanged()
Note: The corresponding handler is onSupportedActionsChanged.
targetChanged()
Note: The corresponding handler is onTargetChanged.