vnpy/vnpy_ctabacktester

PySide6.QtWidgets.QBoxLayout.addWidget(pg.GraphicsLayoutWidget) TypeError

litianyiliwei opened this issue · 1 comments

self.chart: BacktesterChart = BacktesterChart() //pg.GraphicsLayoutWidget
chart: QtWidgets.QVBoxLayout = QtWidgets.QVBoxLayout()
chart.addWidget(self.chart)

TypeError("'PySide6.QtWidgets.QBoxLayout.addWidget' called with wrong argument types:\n PySide6.QtWidgets.QBoxLayout.addWidget(BacktesterChart)\nSupported signatures:\n PySide6.QtWidgets.QBoxLayout.addWidget(PySide6.QtWidgets.QWidget, int = 0, PySide6.QtCore.Qt.Alignment = Default(Qt.Alignment))")

PYQTGRAPH_QT_LIB 环境变量改为PySide6