QExposeEvent 类包含用于暴露事件的事件参数。 更多...
| 头: | #include <QExposeEvent> |
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| 继承: | QEvent |
| QExposeEvent (const QRegion & exposeRegion ) |
Expose events are sent to windows when they move between the un-exposed and exposed states.
An exposed window is potentially visible to the user. If the window is moved off screen, is made totally obscured by another window, is minimized, or similar, an expose event is sent to the window, and isExposed() might change to false.
Expose events should not be used to paint. Handle QPaintEvent 代替。
事件处理程序 QWindow::exposeEvent () 接收暴露事件。
[explicit]
QExposeEvent::
QExposeEvent
(const
QRegion
&
exposeRegion
)
构造暴露事件为给定 exposeRegion 其必须在本地坐标中。