반응형
Notice
Recent Posts
Recent Comments
Link
관리 메뉴

bro's coding

python.pyQt5.QT designer with PyCharm(Qt designer과 PyCharm 연동) 본문

[IT]/python

python.pyQt5.QT designer with PyCharm(Qt designer과 PyCharm 연동)

givemebro 2021. 1. 28. 14:05
반응형

이 포스팅은 [Qt designer]를 [PyCharm]에 연동하는 방법을 총 3단계로 구분해 설명합니다.

 

1. install pyqt5

!pip install pyqt5
'''
Collecting pyqt5
  Downloading PyQt5-5.15.2-5.15.2-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl (56.9 MB)
     |████████████████████████████████| 56.9 MB 3.3 MB/s
Collecting PyQt5-sip<13,>=12.8
  Downloading PyQt5_sip-12.8.1-cp38-cp38-win_amd64.whl (63 kB)
     |████████████████████████████████| 63 kB ...
Installing collected packages: PyQt5-sip, pyqt5
Successfully installed PyQt5-sip-12.8.1 pyqt5-5.15.2
'''

 

2. install pyqt5 tools

!pip install pyqt5-tools
'''
Collecting pyqt5-tools
  Downloading pyqt5_tools-5.15.2.3.0.2-py3-none-any.whl (28 kB)
Requirement already satisfied: pyqt5==5.15.2 in c:\anaconda3\envs\pythonproject2\lib\site-packages (from pyqt5-tools) (5.15.2)
Collecting click
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Requirement already satisfied: PyQt5-sip<13,>=12.8 in c:\anaconda3\envs\pythonproject2\lib\site-packages (from pyqt5==5.15.2->pyqt5-tools) (12.8.1)
Collecting pyqt5-plugins<5.15.2.3,>=5.15.2.2
  Downloading pyqt5_plugins-5.15.2.2.0.1-cp38-cp38-win_amd64.whl (65 kB)
     |████████████████████████████████| 65 kB 975 kB/s
Requirement already satisfied: pyqt5==5.15.2 in c:\anaconda3\envs\pythonproject2\lib\site-packages (from pyqt5-tools) (5.15.2)
Collecting python-dotenv
  Downloading python_dotenv-0.15.0-py2.py3-none-any.whl (18 kB)
Collecting qt5-tools<5.15.2.2,>=5.15.2.1
  Downloading qt5_tools-5.15.2.1.0.1-py3-none-any.whl (12 kB)
Collecting qt5-applications<5.15.2.3,>=5.15.2.2
  Downloading qt5_applications-5.15.2.2.1-py3-none-win_amd64.whl (61.0 MB)
     |████████████████████████████████| 61.0 MB 140 kB/s
Installing collected packages: qt5-applications, click, qt5-tools, python-dotenv, pyqt5-plugins, pyqt5-tools
Successfully installed click-7.1.2 pyqt5-plugins-5.15.2.2.0.1 pyqt5-tools-5.15.2.3.0.2 python-dotenv-0.15.0 qt5-applications-5.15.2.2.1 qt5-tools-5.15.2.1.0.1
'''

 

3. setting external Tools

[File]->[Settings]->[Tools]->[External Tools]->[+]

 

3-1. Qt Designer 등록

'''
Name : Qt Designer
Program : <designer.exe with it's path>
Working directory : $ProjectFileDir$
'''

# [designer.exe]를 파일 탐색기를 사용해 찾는다.
# 파일 탐색기보다 Quick Search 프로그램을 사용하는 것을 추천한다.

3-2. PyUIC 등록

'''
Name : PyUIC
Program : <pyuic5.exe with it's path>
Working directory : $FileDir$
'''

# [pyuic5.exe]를 파일 탐색기를 사용해 찾는다.
# 파일 탐색기보다 Quick Search 프로그램을 사용하는 것을 추천한다.

3-3. PyRCC 등록

'''
Name : PyRCC
Program : <pyrcc5.exe with it's path>
Working directory : $FileDir$
'''

# [pyrcc5.exe]를 파일 탐색기를 사용해 찾는다.
# 파일 탐색기보다 Quick Search 프로그램을 사용하는 것을 추천한다.

 

 

설치 완료

 


 

작동 확인

[Tools]->[External Tools]->[Qt Designer]

 

반응형
Comments