Skip to content

WIP: Expose CutterApplication to Python and add accessor#2032

Open
thestr4ng3r wants to merge 1 commit into
devfrom
py-app
Open

WIP: Expose CutterApplication to Python and add accessor#2032
thestr4ng3r wants to merge 1 commit into
devfrom
py-app

Conversation

@thestr4ng3r

@thestr4ng3r thestr4ng3r commented Jan 24, 2020

Copy link
Copy Markdown
Member

QApplication::instance() will always return a QCoreApplication wrapper in PySide2.
This adds cutter.app() which gives you a CutterApplication.
see https://forums.autodesk.com/t5/3ds-max-programming/qapplication-instance-returns-qcoreapplication-instance/td-p/9035295

@thestr4ng3r thestr4ng3r requested a review from ITAYC0HEN January 24, 2020 14:24
@thestr4ng3r thestr4ng3r changed the title Expose CutterApplication to Python and add accessor WIP: Expose CutterApplication to Python and add accessor Jan 24, 2020
@ITAYC0HEN

Copy link
Copy Markdown
Member

It works, but segfaults on close

@yossizap yossizap left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for the crash when Cutter is closed, seems to originate from ~QCutterApplication.

@ITAYC0HEN ITAYC0HEN added the Waiting-For: Author This issue or PR is awaiting for a response or action from the author label Feb 22, 2020
@thestr4ng3r thestr4ng3r changed the base branch from master to dev December 21, 2021 12:43
@XVilka

XVilka commented Aug 17, 2022

Copy link
Copy Markdown
Member

@wingdeans FYI.

@XVilka

XVilka commented Aug 17, 2022

Copy link
Copy Markdown
Member

@thestr4ng3r please rebase on top of the latest dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Waiting-For: Author This issue or PR is awaiting for a response or action from the author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants