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は、イベントクラス群の一部です。
パブリック関数
| QChildWindowEvent(QEvent::Type type, QWindow *childWindow) | |
| QWindow * | child() const |
プロテクトされた関数
| QChildWindowEvent(QChildWindowEvent &&) | |
| QChildWindowEvent & | operator=(QChildWindowEvent &&) |
| QChildWindowEvent & | operator=(const QChildWindowEvent &other) |
詳細な説明
子ウィンドウのイベントは、子ウィンドウが追加または削除されたときにウィンドウに送信されます。
どちらの場合も、子ウィンドウがQWindow であり、そのサブクラスではないことのみを前提とすることができます。これは、QEvent::ChildWindowAdded の場合、サブクラスがまだ完全に構築されていないためであり、QEvent::ChildWindowRemoved の場合、サブクラスがすでに破棄されている可能性があるためです。
メンバ関数のドキュメント
[explicit] QChildWindowEvent::QChildWindowEvent(QEvent::Type type, QWindow *childWindow)
childWindow に対して、特定のtype の子ウィンドウイベントオブジェクトを作成します。
type 引数には `QEvent::ChildWindowAdded ` または `QEvent::ChildWindowRemoved` を指定できます。
child()も参照してください 。
[protected delete] QChildWindowEvent::QChildWindowEvent(QChildWindowEvent &&)
QChildWindowEvent のインスタンスをMove-constructで生成します。この関数は削除されています。
QWindow *QChildWindowEvent::child() const
追加または削除された子ウィンドウを返します。
[protected delete] QChildWindowEvent &QChildWindowEvent::operator=(QChildWindowEvent &&)
other をこのQChildWindowEvent インスタンスに割り当てます。この関数は削除されます。
[noexcept protected default] QChildWindowEvent &QChildWindowEvent::operator=(const QChildWindowEvent &other)
other をこの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.