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

使用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中的就不是一个对象,运行后,点击按钮,文本框中的字符不能改变,卡顿后报错,修改为上下一致就可以了。