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 其必須在本地坐標中。