Nesta página

CloseEvent QML Type (Uncreatable)

Notificação de que um ` Window ` está prestes a ser fechado. Mais...

Import Statement: import QtQuick

Observação: este é um tipo não criável. Ele não pode ser instanciado no QML.

Propriedades

Descrição detalhada

Notificação de que uma janela está prestes a ser fechada pelo sistema de janelas (por exemplo, o usuário clicou no botão de fechar na barra de título). O CloseEvent contém uma propriedade “accepted” que pode ser definida como “false” para interromper o fechamento da janela.

Documentação da propriedade

accepted : bool

Essa propriedade indica se o aplicativo permitirá que o usuário feche a janela. O valor padrão é verdadeiro.

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