QPaintEvent Class
The QPaintEvent class contains event parameters for paint events. More…
| Header | #include <QPaintEvent> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Gui) |
| Module | Nt GUI C++ Classes |
| Inherits | QEvent |
List of all members, including inherited members
Public Functions
| QPaintEvent(const QRegion &paintRegion) | |
| QPaintEvent(const QRect &paintRect) | |
| const QRegion & | region() const |
| QRect | rect() const |
Reimplemented Public Functions
| QPaintEvent * | clone() const |
Detailed Description
A paint event asks a window to paint the part of itself that the region names. QPaintDeviceWindow sends it.
See also QRasterWindow and QPainter.
Member Function Documentation
QPaintEvent::QPaintEvent(const QRegion &paintRegion)
Constructs a paint event for paintRegion.
QPaintEvent::QPaintEvent(const QRect &paintRect)
This is an overloaded function.
Constructs a paint event for paintRect.
QPaintEvent * QPaintEvent::clone() const
Reimplements QEvent::clone().
QRect QPaintEvent::rect() const
Returns the smallest rectangle that contains the region.
const QRegion & QPaintEvent::region() const
Returns the region that needs painting.