安装好VS Code 和 PySide6后,安装扩展 Qt for Python.
需要用到以下命令在 cmd中 找到相关路径:
where python
和
pip show PySide6
得到路径后,填入以下设置中:
{ "workbench.colorTheme": "Default Dark+", "explorer.confirmDelete": false, "qtForPython.lupdate.liveExecution": true, "qtForPython.uic.path": "C:\\Users\\jiae\\AppData\\Local\\Programs\\Python\\Python39\\Lib\\site-packages\\PySide6\\uic.exe", "qtForPython.designer.path": "C:\\Users\\jiae\\AppData\\Local\\Programs\\Python\\Python39\\Lib\\site-packages\\PySide6\\designer.exe", "qtForPython.rcc.path": "C:\\Users\\jiae\\AppData\\Local\\Programs\\Python\\Python39\\Lib\\site-packages\\PySide6\\rcc.exe", }