Python을 위한 GUI 개발중 Qt를 이용한 GUI 개발관련 글들을 포스팅 하려합니다.
PyQt 가 많이 알려졌지만, 공식지원하는 PySide6 에 대한 글을 공식사이트에 있는 내용을 요약 정리할 예정입니다.
첫번째 내용은 간략한 PySide6에 대한 내용과 설치 방법입니다.
출처 :: https://doc.qt.io/qtforpython-6/index.html
Qt for Python
Packages, installation, and details.
doc.qt.io
Qt for Python
: QT Application 작성을 위한 공식적인 QT를 위한 Python binding.
- PySide6 : Python Application에서 Qt6 APIs를 사용가능
- Shiboken6 : C++ project를 파이선에 노출하는데 사용할 수 있는 바인딩 생성 툴 과 일부 utility function을 제공
이 프로젝트는 LGPLv3/GPLv3 및 Qt 상용 라이선스 하에서 이용할 수 있습니다.
Package Dependencies

- pyside6-essentials : essential QT modules
- pyside6-addons : additional Qt modules
- shiboken6 : a utility Python module
Requirements
- Python 3.8+
- 가상환경 (Virtual Environment) 에서 사용할 것을 권고함
설치
1. 가상환경 설치 및 활성화
# 가상환경 생성
python -m venv myenv_name
# 가상환경 활성화
## Windows
env\Scripts\activate.bat
## Linux or macOS
source env/bin/activate
2. PySide6 설치
pip install pyside6
# 특정 버전을 사용하고 싶은 경우
pip install pyside6==6.4.1
# 서버의 특정 snapshot에서 설치할 경우
pip install --index-url=https://download.qt.io/snapshots/ci/pyside/6.4/latest pyside6 --trusted-host download.qt.io
3. 설치 test
import PySide6.QtCore
# Prints PySide6 version
print(PySide6.__version__)
# Prints the Qt version used to compile PySide6
print(PySide6.QtCore.__version__)
오늘은 여기까지...