W3cubDocs

/Qt 5.15

CloseEvent QML Type

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

Import Statement: import QtQuick.Window 2.15
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.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qml-qtquick-window-closeevent.html