QChildWindowEvent Class
La classe QChildWindowEvent contient des paramètres d'événement pour les changements de fenêtre enfant. Plus d'informations...
| 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 : | 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 |
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 l'enfant soit une QWindow - et non une sous-classe de celle-ci. En effet, dans le cas de QEvent::ChildWindowAdded, la sous-classe n'est pas encore entièrement construite, et dans le cas de QEvent::ChildWindowRemoved, elle a peut-être déjà été détruite.
Documentation sur les fonctions membres
[explicit] QChildWindowEvent::QChildWindowEvent(QEvent::Type type, QWindow *childWindow)
Construit un objet d'événement de fenêtre enfant d'une type particulière pour la childWindow.
type peut être QEvent::ChildWindowAdded ou QEvent::ChildWindowRemoved.
Voir aussi child().
QWindow *QChildWindowEvent::child() const
Renvoie la fenêtre enfant qui a été ajoutée ou supprimée.
© 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.