Open jiban opened 3 months ago
Here is a simplified code that shows above issue. main_window.zip
simple example to reproduce it without matplotlib can be found in first message of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/579
Hi there, Thank you for the work you've done already. I really appreciate it.
Recently, I wanted to use this PySide6 port of QT ADS for my project, and bumped into an exception.
I was using matplotlib chart in the dock. The code that raised exception was following.
venv/Lib/site-packages/matplotlib/backends/backend_qt.py
I investigated the code and found following. When I changed the code like this, it worked.
However, I don't want to modify the code in matplotlib. So I investigate more and suspected that the return value from QWidget.windowHandle() might be lost. Finally I tried inserting following line in
bindings.xml
.It works!
But I'm not sure if this correction is the way shiboken suggests because I'm not familiar with shiboken. And I don't know the exact mechanism why this should be added though
CFloatingDockContainer
inheritsQWidget
. The fact that a macro definition was used might make shiboken confusing.Could you please look into this issue and clarify what the root cause of it? Or we can just settle down on this
declare-function
solution.Thank you for giving your precious attention on reading this issue.
Best regards, Jake