QChildWindowEvent Class

QChildWindowEventクラスは子ウィンドウの変更のイベントパラメータを含んでいます。詳細...

ヘッダー #include <QChildWindowEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
以来:Qt 6.7
継承: QEvent

パブリック関数

QChildWindowEvent(QEvent::Type type, QWindow *childWindow)
QWindow *child() const

詳しい説明

子ウィンドウ イベントは、子が追加または削除されたときにウィンドウに送信されます。

どちらの場合も、子ウィンドウがQWindow であることにのみ依存できます。これは、QEvent::ChildWindowAdded の場合はサブクラスがまだ完全に構築されておらず、QEvent::ChildWindowRemoved の場合はすでに破棄されている可能性があるためです。

メンバ関数のドキュメント

[explicit] QChildWindowEvent::QChildWindowEvent(QEvent::Type type, QWindow *childWindow)

childWindow に対して、特定のtype の子ウィンドウイベントオブジェクトを構築する。

type は または です。QEvent::ChildWindowAdded QEvent::ChildWindowRemoved

child()も参照してください

QWindow *QChildWindowEvent::child() const

追加または削除された子ウィンドウを返します。

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