CloseEvent QML Type

通知Window 即将关闭。更多

Import Statement: import QtQuick

属性

详细说明

窗口系统即将关闭窗口的通知(例如,用户点击了标题栏上的关闭按钮)。CloseEvent 包含一个接受属性,可将其设置为 false 以放弃关闭窗口。

属性文档

accepted : bool

该属性表示应用程序是否允许用户关闭窗口。默认为 true。


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