QExposeEvent Class

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)

详细说明

当窗口在未暴露和暴露状态之间移动时,会向其发送暴露事件。

暴露的窗口对用户来说是潜在可见的。如果窗口被移出屏幕、被其他窗口完全遮挡、最小化或类似情况,就会向窗口发送暴露事件,并且 isExposed() 可能会变为 false。

暴露事件不应用于绘制。请使用QPaintEvent 进行处理。

事件处理程序QWindow::exposeEvent() 接收曝光事件。

成员函数文档

[explicit] QExposeEvent::QExposeEvent(const QRegion &exposeRegion)

为给定的exposeRegion 构建一个暴露事件,该事件必须以本地坐标为单位。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.