In questa pagina

CloseEvent QML Type (Uncreatable)

Notifica relativa alla chiusura imminente di un oggetto ` Window `. Altro...

Import Statement: import QtQuick

Nota: si tratta di un tipo non creabile. Non può essere istanziato in QML.

Proprietà

Descrizione dettagliata

Notifica che una finestra sta per essere chiusa dal sistema a finestre (ad esempio, l'utente ha fatto clic sul pulsante di chiusura nella barra del titolo). L'evento CloseEvent contiene una proprietà "accepted" che può essere impostata su "false" per annullare la chiusura della finestra.

Documentazione delle proprietà

accepted : bool

Questa proprietà indica se l'applicazione consentirà all'utente di chiudere la finestra. Il valore predefinito è 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.