You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python: 3.12/3.11.7 embedded version
Pyqt: 5.15.10/5.15.9
qtpy:2.4.1
Editor: vscode
I used the embedded version + venv to create a virtual environment. After discovering the problem, I tried to remove the virtual environment and tried changing to different versions of python and pyqt, but the problem remained.
As you can see in vscode, when I use qtpy to import, QAction cannot be recognized normally, but other subclasses are normal, such as QApplication and QMainWindow. There is no problem.
But if you do not use qtpy and import directly from pyqt5, then everything will be normal, including QAction.
How to solve this?
The text was updated successfully, but these errors were encountered:
Hi @npzs thank you for the feedback! When you say importing QAction is not working you mean like VSCode is not highlighting QAction in the import, right? Or maybe that running the code gives some error? Do you have any other binding other than PyQt5 installed? Maybe that could be causing VSCode to not highlight properly the code?
python: 3.12/3.11.7 embedded version
Pyqt: 5.15.10/5.15.9
qtpy:2.4.1
Editor: vscode
I used the embedded version + venv to create a virtual environment. After discovering the problem, I tried to remove the virtual environment and tried changing to different versions of python and pyqt, but the problem remained.
As you can see in vscode, when I use qtpy to import, QAction cannot be recognized normally, but other subclasses are normal, such as QApplication and QMainWindow. There is no problem.
But if you do not use qtpy and import directly from pyqt5, then everything will be normal, including QAction.
How to solve this?
The text was updated successfully, but these errors were encountered: