Pyside2 notes: installation and configuration

pyside2 install

pip install PySide2

If the installation is slow, you can choose the mirror source installation

pip install PySide2 -i https://pypi.tuna.tsinghua.edu.cn/simple

add to pycharm


pyside2-uic.exe can convert ui files to py files.
Add pyside2-uic.exe and designer.exe to the pycharm extension tool
. Open Pycharm File->Settings and set as shown below

insert image description here
Add QtDesigner to pycharm extension tools.
insert image description here

program:          QtDesigner.exe 路径
work directory:   $FileDir$

insert image description here

 program:          pyside2-uic.exe 路径
 arguments:        -o $FileNameWithoutExtension$.py $FileName$
 work directory :  $FileDir$

Qt Designer interface

insert image description here

Guess you like

Origin blog.csdn.net/weixin_40649372/article/details/122449346