QShowEvent Class

The QShowEvent class provides an event that is sent when a widget is shown. More...

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

Public Functions

Protected Functions

QShowEvent(QShowEvent &&)
QShowEvent &operator=(QShowEvent &&)
QShowEvent &operator=(const QShowEvent &other)

Detailed Description

There are two kinds of show events: show events caused by the window system (spontaneous), and internal show events. Spontaneous (QEvent::spontaneous()) show events are sent just after the window system shows the window; they are also sent when a top-level window is redisplayed after being iconified. Internal show events are delivered just before the widget becomes visible.

See also QHideEvent.

Member Function Documentation

QShowEvent::QShowEvent()

Constructs a QShowEvent.

[protected delete] QShowEvent::QShowEvent(QShowEvent &&)

Move-constructs an instance of QShowEvent. This function is deleted.

[protected delete] QShowEvent &QShowEvent::operator=(QShowEvent &&)

Move-assigns other to this QShowEvent instance. This function is deleted.

[noexcept protected default] QShowEvent &QShowEvent::operator=(const QShowEvent &other)

Copy-assigns other to this QShowEvent instance.