QChildWindowEvent Class
La classe `QChildWindowEvent` contient les paramètres d'événement relatifs aux modifications apportées aux fenêtres enfants. En savoir plus...
| En-tête : | #include <QChildWindowEvent> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake : | QT += gui |
| Depuis : | Qt 6.7 |
| Hérite de : | QEvent |
- Liste de tous les membres, y compris les membres hérités
- QChildWindowEvent fait partie des classes d'événements.
Fonctions publiques
| QChildWindowEvent(QEvent::Type type, QWindow *childWindow) | |
| QWindow * | child() const |
Fonctions protégées
| QChildWindowEvent(QChildWindowEvent &&) | |
| QChildWindowEvent & | operator=(QChildWindowEvent &&) |
| QChildWindowEvent & | operator=(const QChildWindowEvent &other) |
Description détaillée
Les événements de fenêtre enfant sont envoyés aux fenêtres lorsque des enfants sont ajoutés ou supprimés.
Dans les deux cas, vous ne pouvez compter que sur le fait que la fenêtre enfant soit une classe « QWindow » — et non une de ses sous-classes. En effet, dans le cas d’une « QEvent::ChildWindowAdded », la sous-classe n’est pas encore entièrement construite, et dans le cas d’une « QEvent::ChildWindowRemoved », elle a peut-être déjà été détruite.
Documentation des fonctions membres
[explicit] QChildWindowEvent::QChildWindowEvent(QEvent::Type type, QWindow *childWindow)
Crée un objet d'événement de fenêtre enfant d'une type spécifique pour l'childWindow.
type Peut prendre la valeur « QEvent::ChildWindowAdded » ou « QEvent::ChildWindowRemoved ».
Voir également child().
[protected delete] QChildWindowEvent::QChildWindowEvent(QChildWindowEvent &&)
Crée par « move » une instance de ` QChildWindowEvent`. Cette fonction est supprimée.
QWindow *QChildWindowEvent::child() const
Renvoie la fenêtre enfant qui a été ajoutée ou supprimée.
[protected delete] QChildWindowEvent &QChildWindowEvent::operator=(QChildWindowEvent &&)
La commande « Move-assigns » attribue « other » à cette instance « QChildWindowEvent ». Cette fonction est supprimée.
[noexcept protected default] QChildWindowEvent &QChildWindowEvent::operator=(const QChildWindowEvent &other)
Attribue par copie l'objet « other » à cette instance de « QChildWindowEvent ».
© 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.