QDragMoveEvent
Hierarchy
↳ QDropEvent
↳ QDragMoveEvent
↳ QDragEnterEvent
Index
Constructors
Properties
Methods
- accept
- acceptProposedAction
- answerRect
- dropAction
- ignore
- isAccepted
- keyboardModifiers
- mimeData
- mouseButtons
- pos
- posF
- possibleActions
- proposedAction
- setAccepted
- setDropAction
- spontaneous
- type
Constructors
constructor
+ new QDragMoveEvent(arg
: NativeRawPointer‹"QEvent"› | NativeElement): QDragMoveEvent
Overrides QDropEvent.constructor
Parameters:
Name | Type |
---|---|
arg | NativeRawPointer‹"QEvent"› | NativeElement |
Returns: QDragMoveEvent
Properties
native
• native: NativeElement
Methods
accept
â–¸ accept(x?
: number, y?
: number, width?
: number, height?
: number): void
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
â–¸ acceptProposedAction(): void
Inherited from QDropEvent.acceptProposedAction
Sets the drop action to be the proposed action
Returns: void
answerRect
â–¸ answerRect(): object
Returns: object
height: number
width: number
x: number
y: number
dropAction
â–¸ 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
â–¸ ignore(x?
: number, y?
: number, width?
: number, height?
: number): void
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
â–¸ isAccepted(): boolean
Inherited from QEvent.isAccepted
Returns: boolean
keyboardModifiers
â–¸ keyboardModifiers(): number
Inherited from QDropEvent.keyboardModifiers
Returns the modifier keys that are pressed
see Qt::KeyboardModifier for flags
Returns: number
mimeData
â–¸ mimeData(): QMimeData
Inherited from QDropEvent.mimeData
Returns the data that was dropped on the widget and its associated MIME type information
Returns: QMimeData
mouseButtons
â–¸ mouseButtons(): number
Inherited from QDropEvent.mouseButtons
Returns the mouse buttons that are pressed
See Qt::MouseButton for flags
Returns: number
pos
â–¸ pos(): object
Inherited from QDropEvent.pos
Returns the position where the drop was made
Returns: object
x: number
y: number
posF
â–¸ posF(): object
Inherited from QDropEvent.posF
Returns the position where the drop was made
Returns: object
x: number
y: number
possibleActions
â–¸ possibleActions(): number
Inherited from QDropEvent.possibleActions
Returns an OR-combination of possible drop actions.
See Qt::DropAction for flags
Returns: number
proposedAction
â–¸ proposedAction(): DropAction
Inherited from QDropEvent.proposedAction
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:
Name | Type |
---|---|
accepted | boolean |
Returns: void
setDropAction
â–¸ setDropAction(action
: DropAction): void
Inherited from QDropEvent.setDropAction
Parameters:
Name | Type |
---|---|
action | DropAction |
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
Returns the event type
Returns: number
This is QEvent::Type