QExposeEvent 類

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