1. 安装PyQt5和PyQt5-tools

    pip install PyQt5
    pip install PyQt5-tools

  2. vscode安装扩展

    vscode+PyQt+QtDesigner

  3. 找到QtDesigner 安装路径

vscode+PyQt+QtDesigner

将该文件夹中designer.exe生成桌面快捷方式,方便日后制作.ui文件。

  1. 打开 designer.exe,并绘制你想要的UI界面,假设保存为 test.ui

  2. 打开VSCode,打开 test.ui 刚才存放的那个工程文件夹。

    右击test.ui文件,选择编译为py文件

    vscode+PyQt+QtDesigner

相关文章:

  • 2022-01-08
  • 2021-08-11
  • 2022-01-17
  • 2021-09-18
  • 2021-10-15
  • 2021-04-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-01
  • 2021-04-28
  • 2021-09-04
  • 2022-02-02
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
相关资源
相似解决方案