(0xC0000409) Exit code PyQt5 (QT Designer)

-1

In some simple code for testing QT Designer I get this error message:

Process finished with exit code -1073740791 (0xC0000409)

Here is the code:

from PyQt5 import QtWidgets, uic

def Convert():
    dlg.one.setText(str(float(dlg.result.text())*1.5))

app = QtWidgets.QApplication([])
dlg = uic.loadUi("P1.ui")

dlg.pushButton.clicked.connect(Convert)

dlg.show()
app.exec()

and QT: enter image description here

I used QTDesigner from the Python3.7 directory and I created a simple converter. I have one element to enter value, one button to run script and last element to show results.

I updated my Nvidia drivers because I read a tip on the internet, then I switched QTDesigner and Pycharm from IntelHD Graphics to my Nvidia. But the problem was not resolved.

I need to add that when I use only PyQT5 in Pycharm and make some operations on values everything is OK. PyQT tools are of course installed. The window with my converter works fine also. I can enter value but when I click the button then the program stops, and it shows the error message as above.

Have you any idea where the problem is?

QT module: file

python
pyqt
pyqt5
asked on Stack Overflow Jun 29, 2019 by MichaoDev • edited Jul 1, 2019 by Catarina Ferreira

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0