QChildWindowEvent Class
La classe QChildWindowEvent contiene i parametri relativi agli eventi che segnalano le modifiche alle finestre figlie. Per saperne di più...
| Intestazione: | #include <QChildWindowEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| A partire da: | Qt 6.7 |
| Eredita da: | QEvent |
- Elenco di tutti i membri, compresi quelli ereditati
- QChildWindowEvent fa parte delle classi Event.
Funzioni pubbliche
| QChildWindowEvent(QEvent::Type type, QWindow *childWindow) | |
| QWindow * | child() const |
Funzioni protette
| QChildWindowEvent(QChildWindowEvent &&) | |
| QChildWindowEvent & | operator=(QChildWindowEvent &&) |
| QChildWindowEvent & | operator=(const QChildWindowEvent &other) |
Descrizione dettagliata
Gli eventi delle finestre figlie vengono inviati alle finestre quando vengono aggiunte o rimosse delle finestre figlie.
In entrambi i casi è possibile fare affidamento solo sul fatto che la finestra figlia sia un'QWindow, non su una sua sottoclasse. Questo perché nel caso di ` QEvent::ChildWindowAdded ` la sottoclasse non è ancora stata completamente costruita, mentre nel caso di ` QEvent::ChildWindowRemoved ` potrebbe essere già stata distrutta.
Documentazione delle funzioni membro
[explicit] QChildWindowEvent::QChildWindowEvent(QEvent::Type type, QWindow *childWindow)
Crea un oggetto evento della finestra figlia di una specifica type per l'childWindow.
type Può essere QEvent::ChildWindowAdded o QEvent::ChildWindowRemoved.
Vedi anche child().
[protected delete] QChildWindowEvent::QChildWindowEvent(QChildWindowEvent &&)
Crea un'istanza di ` QChildWindowEvent`. Questa funzione è stata eliminata.
QWindow *QChildWindowEvent::child() const
Restituisce la finestra figlia che è stata aggiunta o rimossa.
[protected delete] QChildWindowEvent &QChildWindowEvent::operator=(QChildWindowEvent &&)
Assegna " other " a questa istanza " QChildWindowEvent ". Questa funzione viene eliminata.
[noexcept protected default] QChildWindowEvent &QChildWindowEvent::operator=(const QChildWindowEvent &other)
Assegna “ other ” a questa istanza di “ 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.