147 lines
2.8 KiB
Markdown
147 lines
2.8 KiB
Markdown
---
|
||
id: "qpaintevent"
|
||
title: "QPaintEvent"
|
||
sidebar_label: "QPaintEvent"
|
||
---
|
||
|
||
## Hierarchy
|
||
|
||
* [QEvent](qevent.md)
|
||
|
||
↳ **QPaintEvent**
|
||
|
||
## Index
|
||
|
||
### Constructors
|
||
|
||
* [constructor](qpaintevent.md#constructor)
|
||
|
||
### Properties
|
||
|
||
* [native](qpaintevent.md#native)
|
||
|
||
### Methods
|
||
|
||
* [accept](qpaintevent.md#accept)
|
||
* [ignore](qpaintevent.md#ignore)
|
||
* [isAccepted](qpaintevent.md#isaccepted)
|
||
* [rect](qpaintevent.md#rect)
|
||
* [setAccepted](qpaintevent.md#setaccepted)
|
||
* [spontaneous](qpaintevent.md#spontaneous)
|
||
* [type](qpaintevent.md#type)
|
||
|
||
## Constructors
|
||
|
||
### constructor
|
||
|
||
\+ **new QPaintEvent**(`event`: [NativeRawPointer](../globals.md#nativerawpointer)‹"QEvent"›): *[QPaintEvent](qpaintevent.md)*
|
||
|
||
*Overrides [QEvent](qevent.md).[constructor](qevent.md#constructor)*
|
||
|
||
**Parameters:**
|
||
|
||
Name | Type |
|
||
------ | ------ |
|
||
`event` | [NativeRawPointer](../globals.md#nativerawpointer)‹"QEvent"› |
|
||
|
||
**Returns:** *[QPaintEvent](qpaintevent.md)*
|
||
|
||
## Properties
|
||
|
||
### native
|
||
|
||
• **native**: *[NativeElement](../globals.md#nativeelement)*
|
||
|
||
*Inherited from [QEvent](qevent.md).[native](qevent.md#native)*
|
||
|
||
## Methods
|
||
|
||
### accept
|
||
|
||
▸ **accept**(): *void*
|
||
|
||
*Inherited from [QEvent](qevent.md).[accept](qevent.md#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*
|
||
|
||
___
|
||
|
||
### ignore
|
||
|
||
▸ **ignore**(): *void*
|
||
|
||
*Inherited from [QEvent](qevent.md).[ignore](qevent.md#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](qevent.md).[isAccepted](qevent.md#isaccepted)*
|
||
|
||
**Returns:** *boolean*
|
||
|
||
___
|
||
|
||
### rect
|
||
|
||
▸ **rect**(): *[QRect](qrect.md)*
|
||
|
||
**Returns:** *[QRect](qrect.md)*
|
||
|
||
___
|
||
|
||
### setAccepted
|
||
|
||
▸ **setAccepted**(`accepted`: boolean): *void*
|
||
|
||
*Inherited from [QEvent](qevent.md).[setAccepted](qevent.md#setaccepted)*
|
||
|
||
Sets the accept flag of the event object
|
||
|
||
**Parameters:**
|
||
|
||
Name | Type |
|
||
------ | ------ |
|
||
`accepted` | boolean |
|
||
|
||
**Returns:** *void*
|
||
|
||
___
|
||
|
||
### spontaneous
|
||
|
||
▸ **spontaneous**(): *boolean*
|
||
|
||
*Inherited from [QEvent](qevent.md).[spontaneous](qevent.md#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](qevent.md).[type](qevent.md#type)*
|
||
|
||
Returns the event type
|
||
|
||
**Returns:** *number*
|
||
|
||
This is QEvent::Type
|