使用pycharm运行PyQt5的工程,出现以下报错:

Pycharm运行PyQt5报错: Process finished with exit code -1073740791 (0xC0000409)

请注意这里的self:

Pycharm运行PyQt5报错: Process finished with exit code -1073740791 (0xC0000409)

这里的三个self要有,否则函数pushButton1_clicked中的lineEdit1.setText和上面initUI中的就不是一个对象,运行后,点击按钮,文本框中的字符不能改变,卡顿后报错,修改为上下一致就可以了。


相关文章:

  • 2021-11-15
  • 2022-12-23
  • 2021-05-24
  • 2021-03-31
  • 2021-09-21
  • 2021-11-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-08-20
  • 2022-12-23
  • 2021-06-26
  • 2021-06-09
相关资源
相似解决方案