이 페이지에서

Python 애플리케이션 실행

Qt Creator 에서 직접 Qt for Python 애플리케이션을 실행할 수 있습니다. 새 프로젝트 마법사를 사용하여 애플리케이션 프로젝트를 생성한 경우, ‘ Run ’ 버튼을 선택하면 main.py 파일이 자동으로 실행됩니다.

Python 실행 설정 지정

키트에 대해 선택한 ‘Run device’에서 애플리케이션을 실행하기 위한 설정을 지정하려면 Projects > Run Settings 로 이동하십시오.

파이썬 실행 설정

다음 표는 Qt for Python 애플리케이션 실행에 대한 설정을 요약한 것입니다.

설정
PythonPython 실행 파일의 경로입니다.
Buffered output출력을 버퍼에 저장합니다. 이렇게 하면 출력 성능이 향상되지만, 출력에 지연이 발생합니다.
Script실행할 프로젝트의 메인 파일 경로를 표시합니다.
Command line arguments실행 파일에 전달할 명령줄 인수입니다.

사용자 정의 실행 파일 실행 구성 지정

main.py 이외의 다른 Python 파일을 실행하려면 사용자 지정 실행 파일 실행 구성을 생성하십시오:

Python 사용자 정의 실행 파일 실행 설정

  1. Add > Custom Executable 을 선택합니다.
  2. ' Executable ' 필드에서 Python 실행 파일의 경로를 지정합니다.
  3. ' Command line arguments ' 필드에서 실행할 Python 파일을 선택합니다.

‘프로젝트에 대한 키트 활성화’, ‘실행을 위한 프로젝트 구성’, Qt for Python 애플리케이션 생성’Qt for Python 애플리케이션 개발’항목도 참조하십시오 .

Copyright © The Qt Company Ltd. and other contributors. 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.