Exemplo n.º 1
0
    def closeEvent(self, event: QCloseEvent) -> None:
        """This event handler is called with the given event when Qt receives
        a window close request for a top-level widget from the window
        system.

        By default, the event is accepted and the widget is
        closed. You can reimplement this function to change the way
        the widget responds to window close requests. For example, you
        can prevent the window from closing by calling ignore() on all
        events.

        In other words: If you do not want your widget to be hidden,
        or want some special handling, you should reimplement the
        event handler and ignore() the event.

        """
        # event.ignore()
        LOG.info("QImageDisplay.closeEvent: accepted: %s", event.isAccepted())