QExposeEvent Class

The QExposeEvent class contains event parameters for expose events. More...

Header: #include <QExposeEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Since: Qt 5.0
Inherits: QEvent

Public Functions

QExposeEvent(const QRegion &exposeRegion)
virtual ~QExposeEvent() override

Reimplemented Public Functions

virtual QExposeEvent *clone() const override

Protected Functions

QExposeEvent(const QExposeEvent &)
QExposeEvent(QExposeEvent &&)

Protected Variables

QRegion m_region

Detailed Description

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 instead.

The event handler QWindow::exposeEvent() receives expose events.

Member Function Documentation

QExposeEvent::QExposeEvent(const QRegion &exposeRegion)

Constructs an expose event for the given exposeRegion which must be in local coordinates.

[protected] QExposeEvent::QExposeEvent(const QExposeEvent &)

Copy constructor.

[protected] QExposeEvent::QExposeEvent(QExposeEvent &&)

Move-copy constructor.

[override virtual] QExposeEvent::~QExposeEvent()

Destroys the instance of QExposeEvent. The destructor is virtual.

[override virtual] QExposeEvent *QExposeEvent::clone() const

Member Variable Documentation

QRegion QExposeEvent::m_region

© 2022 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.