Q&A-pyside2的qml程序中使用QtCharts模块出现运行错误
Question:
在pyside2中,qml文件中添加ChartView组件后,运行没有出现窗口并出现如下错误:
程序异常结束
The process was ended forcefully.
xxx crashed.
Answer:
替换掉python中创建app对象的代码,即:
将 app = QGuiApplication(sys.argv)
替换为 app = QApplication(sys.argv)
著作权归本网站(https://makerinchina.cn)所有,转载请注明来自 MakerInChina.