Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: added sanity checks for compatibility with pyqtgraph #81

Open
wants to merge 1 commit into
base: patched-9
Choose a base branch
from

Conversation

fbordignon
Copy link

Hi guys, I've come back to this issue https://discourse.slicer.org/t/pythonqt-properties-shadowing-methods/16992

Turns out a GraphicsScene of pyqtgraph was referencing itself as a parent when wrapped by PythonQt. I don't know if it is a bug of pyqtgraph or PythonQt. All I know is that adding this simple sanity checks prevented stack overflows and now I have pretty pyqtgraphs integrated into a PythonQt app (3D Slicer) via wrapping a pythonqt layout with shiboken2 and adding a pyside2 widget to it. More details on referenced thread.

I don't know if it is a desirable merge but it is simple enough that I figured it could be of interest.

@fbordignon
Copy link
Author

Hello everyone. I've been using this patch since the original date of the PR with no issues whatsoever. Since it is a bunch of sanity checks, I believe we can merge this. Please review it. I believe it is beneficial to be able to use pyside2 with PythonQt!

@pieper
Copy link
Member

pieper commented Jun 24, 2022

This looks fine to me, but wouldn't we want to suggest it to the upstream PythonQt?

@fbordignon
Copy link
Author

Sure, I'm on it!

jamesobutler pushed a commit to jamesobutler/PythonQt that referenced this pull request Dec 12, 2023
- also remove unneeded "pydebug.h" include
  -> fixes commontk#81
jcfr pushed a commit to jcfr/PythonQt that referenced this pull request Dec 14, 2023
(adapted from commit MeVisLab/pythonqt@a93104d)

- also remove unneeded "pydebug.h" include
  -> fixes commontk#81
jcfr pushed a commit that referenced this pull request Jan 28, 2024
(adapted from commit MeVisLab/pythonqt@a93104d)

- also remove unneeded "pydebug.h" include
  -> fixes #81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants