1 Star 0 Fork 0

makerinchina / bug_list

 / 详情

pyside2的qml程序中使用QtCharts模块出现运行错误

Done
owner
Opened this issue  
2022-08-05 14:22

Question:

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

Comments (1)

makerinchina created任务

Answer:

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

makerinchina changed issue state from 待办的 to 已完成
makerinchina changed issue state from 已完成 to 进行中
makerinchina changed issue state from 进行中 to 已完成

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(1)
5420638 makerinchina 1639922393
1
https://gitee.com/makerinchina/bug_list.git
git@gitee.com:makerinchina/bug_list.git
makerinchina
bug_list
bug_list

Search