DragEvent

Provides information about a drag event More...

Properties

Methods

Detailed Description

The position of the drag event can be obtained from the x and y properties, and the keys property identifies the drag keys of the event source.

Property Documentation

accepted : real

This property holds whether the drag event was accepted by a handler.

The default value is true.


action : enumeration

This property holds the action that the source is to perform on an accepted drop.

The drop action may be one of:

  • Qt.CopyAction Copy the data to the target
  • Qt.MoveAction Move the data from the source to the target
  • Qt.LinkAction Create a link from the source to the target.
  • Qt.IgnoreAction Ignore the action (do nothing with the data).

drag.source : Object

This property holds the source of a drag event.


keys : stringlist

This property holds a list of keys identifying the data type or source of a drag event.


supportedActions : flags

This property holds the set of actions supported by the drag source.


x : real

This property holds the x coordinate of a drag event.


y : real

This property holds the y coordinate of a drag event.


Method Documentation

DragEvent::accept()

Accepts the drag event.

If an action is specified it will overwrite the value of the action property.


DragEvent::accept(enumeration action)

Accepts the drag event.

If an action is specified it will overwrite the value of the action property.