Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
6.1.1
-
None
Description
Good day
When I want to create a PyQt app with PySide 6.1.1 and I create a QWidget which contains a Matplolib plot, the QToolBar does not work. I allways get the following error:
Traceback (most recent call last): File "H:\TestProjekt\Gui_PySide6\main_ui_pyside.py", line 66, in btn_clicked self.plotwinow = PlotWindow('Hello Plot', self.geometry) File "H:\TestProjekt\Gui_PySide6\py_plot_window.py", line 31, in __init__ self.toolbar = NavigationToolbar2QT(self.canvas, self) File "C:\Users\peyden\AppData\Local\Programs\Python\Python37\lib\site-packages\matplotlib\backends\backend_qt5.py", line 649, in __init__ QtWidgets.QToolBar.__init__(self, parent) TypeError: arguments did not match any overloaded call: QToolBar(str, parent: QWidget = None): argument 1 has unexpected type 'PlotWindow' QToolBar(parent: QWidget = None): argument 1 has unexpected type 'PlotWindow'
If I run the whole program with PyQt5 (5.13.1) imports instead of PySide6 imports, I have no problems.
I have attached two folders one containg all the files for the PyQt5 Version and one the PySide6 Version