website/docs/api/generated/classes/qinputmethodqueryevent.md
Note: Qt performs some default processing for QInputMethodQueryEvents.
When attaching an event listener via addEventListener() use the
options object to specify that you want to run after the default
processing, otherwise your setValue() calls will be overwritten.
↳ QInputMethodQueryEvent
+ new QInputMethodQueryEvent(event: NativeRawPointer‹"QEvent"›): QInputMethodQueryEvent
Overrides QEvent.constructor
Parameters:
| Name | Type |
|---|---|
event | NativeRawPointer‹"QEvent"› |
Returns: QInputMethodQueryEvent
• native: NativeElement
▸ 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(): 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(): boolean
Inherited from QEvent.isAccepted
Returns: boolean
▸ queries(): number
Returns: number
▸ setAccepted(accepted: boolean): void
Inherited from QEvent.setAccepted
Sets the accept flag of the event object
Parameters:
| Name | Type |
|---|---|
accepted | boolean |
Returns: void
▸ setValue(query: number, value: QVariantType): void
Parameters:
| Name | Type |
|---|---|
query | number |
value | QVariantType |
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
▸ value(query: number): QVariant
Parameters:
| Name | Type |
|---|---|
query | number |
Returns: QVariant