vnpy / vnpy_ctabacktester

VeighNa框架的CTA回测模块
https://www.vnpy.com
MIT License
56 stars 63 forks source link

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

Closed litianyiliwei closed 1 year ago

litianyiliwei commented 1 year ago

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))")

litianyiliwei commented 1 year ago

PYQTGRAPH_QT_LIB 环境变量改为PySide6