このページでは

CloseEvent QML Type (Uncreatable)

Window が閉じられようとしていることを通知します。詳細...

Import Statement: import QtQuick

注:これは作成不可能な型です。QML内ではインスタンス化できません。

プロパティ

詳細な説明

ウィンドウシステムによってウィンドウが閉じられようとしていることを通知します(例:ユーザーがタイトルバーの閉じるボタンをクリックした場合など)。CloseEventにはacceptedプロパティが含まれており、これをfalseに設定することでウィンドウの閉じ処理を中止できます。

プロパティのドキュメント

accepted : bool

このプロパティは、アプリケーションがユーザーによるウィンドウの閉じを許可するかどうかを示します。デフォルトでは true です。

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