Python 개발 환경 설정
Qt Python 확장 팩을 사용하면 Qt for Python VS Code와 Python을 사용하여 애플리케이션을 개발할 수 있습니다:
- PySide6 패키지 설치
- Qt Quick 또는 Qt Widgets 기반 UI를 사용하여 Qt for Python 애플리케이션을 생성
- 애플리케이션 빌드, 실행 및 정리
debugpy및 QML 디버거를 사용하여 애플리케이션 디버깅- Qt for Python 문서 읽기
프로젝트에 PySide6 설치하기
VS Code에서 PySide6 프로젝트를 실행하는 권장 방법은 각 프로젝트마다 PySide6을 설치하는 것입니다. VS Code용 Qt 확장 프로그램은 프로젝트의 .py 파일을 처음 열 때 이를 설치하도록 안내합니다.
나중에 프로젝트에 PySide6을 설치하려면:
- Command Palette 로 이동하여 ‘ Qt: Install PySide6 ’을 선택합니다.
- Create environment 을 선택하여 프로젝트용 새 가상 환경을 생성합니다. 기존 환경을 사용하려면 Select environment 을 선택합니다.
uv를 사용하여 가상 환경 생성하기
uv Python 패키지 관리자를 설치하고 PATH에 설정해 둔 경우, 이를 사용하여 가상 환경을 생성할 수 있습니다:
- Command Palette 로 이동하여 Qt: Create virtual environment with uv 를 선택합니다.
- 프로젝트를 위한 새로운 가상 환경을 생성하려면 ‘ Create environment ’를 선택하십시오. 기존 환경을 사용하려면 ‘ Select environment ’를 선택하십시오.
관련 항목: 설치, 튜토리얼: Qt Quick 및 Qt for Python, Qt 프로젝트 생성, Qt for Python 애플리케이션 디버깅, Qt 문서 읽기.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.