Skip to content

Conversation

@yungyuc
Copy link
Member

@yungyuc yungyuc commented Mar 6, 2022

Add the Python interpreter to the viewer application and make it scriptable.

* Add the Qt3DWindow to a QWidget in QMainWindow

After adding the widget, a random SIGBUS (bus error: 10) appeared.  It seems the deleteLater() invoked in ~REntityBase() may trigger double free when REntityBase is allocated on the stack.  To resolve, I remove ~REntityBase().

In the future I should change all R* classes to sub-class from Qt.  Although I do not know whether or not it is correct, many examples does it for Qt so I should learn how to do it.
@yungyuc yungyuc added the enhancement New feature or request label Mar 6, 2022
@yungyuc yungyuc self-assigned this Mar 6, 2022
@yungyuc yungyuc marked this pull request as draft March 6, 2022 02:14
yungyuc added 4 commits March 6, 2022 16:51
RPythonText inherits QDockWidget to create a dockable window consisting of a QTextEdit for the Python code and a QPushButton for running the code in the text edit.
@yungyuc yungyuc marked this pull request as ready for review April 4, 2022 12:55
@yungyuc yungyuc merged commit 030a6df into solvcon:project/ustmesh Apr 4, 2022
@yungyuc yungyuc deleted the feature/viewer-embed-python branch April 4, 2022 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

1 participant