QInputMethodEvent
Hierarchy
↳ QInputMethodEvent
Index
Constructors
Properties
Methods
- accept
- commitString
- ignore
- isAccepted
- preeditString
- replacementLength
- replacementStart
- setAccepted
- setCommitString
- spontaneous
- type
Constructors
constructor
+ new QInputMethodEvent(event
: NativeRawPointer‹"QEvent"›): QInputMethodEvent
Overrides QEvent.constructor
Parameters:
Name | Type |
---|---|
event | NativeRawPointer‹"QEvent"› |
Returns: QInputMethodEvent
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
commitString
â–¸ commitString(): string
Returns: string
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
Inherited from QEvent.isAccepted
Returns: boolean
preeditString
â–¸ preeditString(): string
Returns: string
replacementLength
â–¸ replacementLength(): number
Returns: number
replacementStart
â–¸ replacementStart(): number
Returns: number
setAccepted
â–¸ setAccepted(accepted
: boolean): void
Inherited from QEvent.setAccepted
Sets the accept flag of the event object
Parameters:
Name | Type |
---|---|
accepted | boolean |
Returns: void
setCommitString
â–¸ setCommitString(commitString
: string, replaceFrom
: number, replaceLength
: number): void
Parameters:
Name | Type | Default |
---|---|---|
commitString | string | - |
replaceFrom | number | 0 |
replaceLength | number | 0 |
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