Sur cette page

QShowEvent Class

La classe QShowEvent fournit un événement qui est déclenché lorsqu'un widget est affiché. En savoir plus...

En-tête : #include <QShowEvent>
CMake : find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake : QT += gui
Hérite de : QEvent

Fonctions publiques

Fonctions protégées

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

Description détaillée

Il existe deux types d’événements d’affichage : les événements d’affichage provoqués par le système de fenêtrage (spontanés) et les événements d’affichage internes. Les événements d'affichage spontanés (QEvent::spontaneous()) sont envoyés juste après que le système de fenêtrage a affiché la fenêtre ; ils sont également envoyés lorsqu'une fenêtre de niveau supérieur est réaffichée après avoir été réduite en icône. Les événements d'affichage internes sont émis juste avant que le widget ne devienne visible.

Voir également QHideEvent.

Documentation des fonctions membres

QShowEvent::QShowEvent()

Crée un objet QShowEvent.

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

Crée par « move » une instance de ` QShowEvent`. Cette fonction est supprimée.

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

La commande « Move » affecte « other » à cette instance « QShowEvent ». Cette fonction est supprimée.

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

Attribue par copie la classe « other » à cette instance de « QShowEvent ».

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