En esta página

CloseEvent QML Type (Uncreatable)

Notificación de que un objeto « Window » está a punto de cerrarse. Más...

Import Statement: import QtQuick

Nota: Se trata de un tipo no creable. No se puede instanciar en QML.

Propiedades

Descripción detallada

Notificación de que el sistema de ventanas está a punto de cerrar una ventana (por ejemplo, el usuario ha hecho clic en el botón de cierre de la barra de título). El CloseEvent contiene una propiedad «accepted» que se puede establecer en «false» para anular el cierre de la ventana.

Documentación de la propiedad

accepted : bool

Esta propiedad indica si la aplicación permitirá al usuario cerrar la ventana. El valor predeterminado es «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.