Skip to main content

QEvent

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QEvent(native: NativeElement): QEvent

Parameters:

NameType
nativeNativeElement

Returns: QEvent

Properties

native

native: NativeElement

Methods

accept

accept(): 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

Returns: void


ignore

ignore(): 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.

Returns: void


isAccepted

isAccepted(): boolean

Returns: boolean


setAccepted

setAccepted(accepted: boolean): void

Sets the accept flag of the event object

Parameters:

NameType
acceptedboolean

Returns: void


spontaneous

spontaneous(): boolean

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