website/docs/api/generated/classes/qdragenterevent.md
↳ QDragEnterEvent
+ new QDragEnterEvent(event: NativeRawPointer‹"QEvent"›): QDragEnterEvent
Overrides QDragMoveEvent.constructor
Parameters:
| Name | Type |
|---|---|
event | NativeRawPointer‹"QEvent"› |
Returns: QDragEnterEvent
• native: NativeElement
▸ accept(x?: number, y?: number, width?: number, height?: number): void
Inherited from QDragMoveEvent.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
If the rectangle is provided, also notifies that future moves will also be acceptable if they remain within the rectangle given on the widget. This can improve performance, but may also be ignored by the underlying system. If the rectangle is empty, drag move events will be sent continuously. This is useful if the source is scrolling in a timer event.
Parameters:
| Name | Type |
|---|---|
x? | number |
y? | number |
width? | number |
height? | number |
Returns: void
▸ acceptProposedAction(): void
Inherited from QDropEvent.acceptProposedAction
Sets the drop action to be the proposed action
Returns: void
▸ answerRect(): object
Inherited from QDragMoveEvent.answerRect
Returns: object
height: number
width: number
x: number
y: number
▸ dropAction(): DropAction
Inherited from QDropEvent.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(x?: number, y?: number, width?: number, height?: number): void
Inherited from QDragMoveEvent.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.
Parameters:
| Name | Type |
|---|---|
x? | number |
y? | number |
width? | number |
height? | number |
Returns: void
▸ isAccepted(): boolean
Inherited from QEvent.isAccepted
Returns: boolean
▸ keyboardModifiers(): number
Inherited from QDropEvent.keyboardModifiers
Returns the modifier keys that are pressed
see Qt::KeyboardModifier for flags
Returns: number
▸ mimeData(): QMimeData
Inherited from QDropEvent.mimeData
Returns the data that was dropped on the widget and its associated MIME type information
Returns: QMimeData
▸ mouseButtons(): number
Inherited from QDropEvent.mouseButtons
Returns the mouse buttons that are pressed
See Qt::MouseButton for flags
Returns: number
▸ pos(): object
Inherited from QDropEvent.pos
Returns the position where the drop was made
Returns: object
x: number
y: number
▸ posF(): object
Inherited from QDropEvent.posF
Returns the position where the drop was made
Returns: object
x: number
y: number
▸ possibleActions(): number
Inherited from QDropEvent.possibleActions
Returns an OR-combination of possible drop actions.
See Qt::DropAction for flags
Returns: number
▸ proposedAction(): DropAction
Inherited from QDropEvent.proposedAction
Returns the proposed drop action
Returns: DropAction
▸ setAccepted(accepted: boolean): void
Inherited from QEvent.setAccepted
Sets the accept flag of the event object
Parameters:
| Name | Type |
|---|---|
accepted | boolean |
Returns: void
▸ setDropAction(action: DropAction): void
Inherited from QDropEvent.setDropAction
Parameters:
| Name | Type |
|---|---|
action | DropAction |
Returns: void
▸ 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(): number
Returns the event type
Returns: number
This is QEvent::Type