QDropEvent

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QDropEvent(arg: NativeRawPointer‹"QEvent"› | NativeElement): QDropEvent

Overrides QEvent.constructor

Parameters:

NameType
argNativeRawPointer‹"QEvent"› | NativeElement

Returns: QDropEvent

Properties

native

• native: NativeElement

Inherited from QEvent.native

Methods

accept

â–¸ accept(): void

Inherited from QEvent.accept

Sets the accept flag of the event object, the equivalent of calling setAccepted(true). Setting the accept parameter indicates that the event receiver wants the event. Unwanted events might be propagated to the parent widget

Returns: void


acceptProposedAction

â–¸ acceptProposedAction(): void

Sets the drop action to be the proposed action

Returns: void


dropAction

â–¸ dropAction(): DropAction

Returns the action to be performed on the data by the target. This may be different from the action supplied in proposedAction() if you have called setDropAction() to explicitly choose a drop action

Returns: DropAction


ignore

â–¸ ignore(): void

Inherited from QEvent.ignore

Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). Clearing the accept parameter indicates that the event receiver does not want the event. Unwanted events might be propagated to the parent widget.

Returns: void


isAccepted

â–¸ isAccepted(): boolean

Inherited from QEvent.isAccepted

Returns: boolean


keyboardModifiers

â–¸ keyboardModifiers(): number

Returns the modifier keys that are pressed

see Qt::KeyboardModifier for flags

Returns: number


mimeData

â–¸ mimeData(): QMimeData

Returns the data that was dropped on the widget and its associated MIME type information

Returns: QMimeData


mouseButtons

â–¸ mouseButtons(): number

Returns the mouse buttons that are pressed

See Qt::MouseButton for flags

Returns: number


pos

â–¸ pos(): object

Returns the position where the drop was made

Returns: object

  • x: number

  • y: number


posF

â–¸ posF(): object

Returns the position where the drop was made

Returns: object

  • x: number

  • y: number


possibleActions

â–¸ possibleActions(): number

Returns an OR-combination of possible drop actions.

See Qt::DropAction for flags

Returns: number


proposedAction

â–¸ proposedAction(): DropAction

Returns the proposed drop action

Returns: DropAction


setAccepted

â–¸ setAccepted(accepted: boolean): void

Inherited from QEvent.setAccepted

Sets the accept flag of the event object

Parameters:

NameType
acceptedboolean

Returns: void


setDropAction

â–¸ setDropAction(action: DropAction): void

Parameters:

NameType
actionDropAction

Returns: void


spontaneous

â–¸ spontaneous(): boolean

Inherited from QEvent.spontaneous

Returns true if the event originated outside the application (a system event); otherwise returns false.

The return value of this function is not defined for paint events.

Returns: boolean


type

â–¸ type(): number

Inherited from QEvent.type

Returns the event type

Returns: number

This is QEvent::Type