CloseEvent QML Type

Notification that a Window is about to be closed. More...

Import Statement: import QtQuick.Window 2.12
Since: Qt 5.1

Properties

Detailed Description

Notification that a window is about to be closed by the windowing system (e.g. the user clicked the title bar close button). The CloseEvent contains an accepted property which can be set to false to abort closing the window.

See also QQuickWindow::closing().

Property Documentation

accepted : bool

This property indicates whether the application will allow the user to close the window. It is true by default.


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