CloseEvent QML Type (Uncreatable)
| Import Statement: | import QtQuick |
注意:此为不可创建的类型。无法在 QML 中对其进行实例化。
属性
- accepted : bool
详细说明
通知窗口系统即将关闭窗口(例如用户点击了标题栏的关闭按钮)。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.