Question:

在pyside2中,qml文件中添加ChartView组件后,运行没有出现窗口并出现如下错误:
程序异常结束
The process was ended forcefully.
xxx crashed.

Answer:

替换掉python中创建app对象的代码,即:
将 app = QGuiApplication(sys.argv)
替换为 app = QApplication(sys.argv)