Skip to content

ENH: added sanity checks for compatibility with pyqtgraph#81

Open
fbordignon wants to merge 1 commit intocommontk:patched-9from
fbordignon:sanitycheck
Open

ENH: added sanity checks for compatibility with pyqtgraph#81
fbordignon wants to merge 1 commit intocommontk:patched-9from
fbordignon:sanitycheck

Conversation

@fbordignon
Copy link
Copy Markdown

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.

Loading
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