My problem is after installing Python and PyQt5 in vs code, when I run the code he show me this problem:
Undefined variable 'QApplication'
Undefined variable 'QDialog'
But I found a solution here No name 'QApplication' in module 'PyQt5.QtWidgets' error in Pylint which is by adding "python.linting.pylintArgs": ["--extension-pkg-whitelist=PyQt5"]
in settings.json.
( I also try to put a comma at the last line "python.linting.pylintArgs": ["--extension-pkg-whitelist=PyQt5,"]
but it doesn't work)
It solves the first problem and the code is working in a window, but it also create another big problem:
What should I do to solve my issue?