nodeguy/website/docs/api/generated/classes/qmouseevent.md
2021-07-09 01:04:06 +02:00

3.3 KiB
Raw Permalink Blame History

id title sidebar_label
qmouseevent QMouseEvent QMouseEvent

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QMouseEvent(event: NativeRawPointer"QEvent"): QMouseEvent

Overrides QEvent.constructor

Parameters:

Name Type
event NativeRawPointer"QEvent"

Returns: QMouseEvent

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


button

button(): number

Returns: number


buttons

buttons(): number

Returns: number


globalX

globalX(): number

Returns: number


globalY

globalY(): number

Returns: number


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


setAccepted

setAccepted(accepted: boolean): void

Inherited from QEvent.setAccepted

Sets the accept flag of the event object

Parameters:

Name Type
accepted boolean

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


x

x(): number

Returns: number


y

y(): number

Returns: number