Skip to content

Make sure the QApplication doesn't get garbage collected #514

Open
@jasperges

Description

@jasperges

Following up on this 'bug', reported on the Avalon Gitter.

The show() function for the tools creates a QApplication if needed (via tools.lib.application()). The problem however is that the QApplication created in this way will possibly be garbage collected which in turn causes issues with for example module.window.close().

This makes this 'convenience helper' not so convenient anymore. I think we should fix it, so the QApplication will never be garbage collected. Else it doesn't serve it's purpose and an integration is better off creating the QApplication by itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions