이 페이지에서

명령줄에서 Qt Creator 실행

명령줄에서 Qt Creator 을 시작하고 몇 가지 옵션을 지정할 수 있습니다. 예를 들어, 파일을 특정 행과 열에서 열 수 있습니다.

명령줄 옵션을 사용하려면 Qt Creator 실행 파일이 있는 디렉터리에서 다음 명령을 입력하거나, 명령의 일부로 Qt Creator 경로를 지정하십시오:

qtcreator [option] [filename[:line_number[:column_number]]]

참고: 파일 이름과 줄 번호 사이, 그리고 줄 번호와 열 번호 사이에는 콜론(:)이나 더하기 기호(+)를 구분자로 사용할 수있습니다 . 또한 구분자와 줄 번호 사이에 공백을 넣을 수도 있습니다.

CLI 명령어 예시

다음은 Qt Creator 를 기본 설치 위치에 설치할 때 지원되는 플랫폼에서 사용할 수 있는 명령어 예시입니다. Qt Online Installer 기본 위치에 설치할 때 지원되는 플랫폼에서 사용할 수 있는 명령어 예시입니다. 필요에 따라 경로를 변경하십시오.

Windows의 경우:

  • C:\Qt\Tools\QtCreator\bin\qtcreator -help
  • C:\Qt\Tools\QtCreator\bin\qtcreator C:\TextFinder\textfinder.cpp:100:2
  • C:\Qt\Tools\QtCreator\bin\qtcreator C:\TextFinder\textfinder.cpp +100+2

Linux의 경우:

  • ~/Qt/Tools/QtCreator/bin/qtcreator -help
  • ~/Qt/Tools/QtCreator/bin/qtcreator /src/TextFinder/textfinder.cpp:100:2
  • ~/Qt/Tools/QtCreator/bin/qtcreator /src/TextFinder/textfinder.cpp+100+2

macOS의 경우:

  • ~/Qt/Qt\ Creator.app/Contents/MacOS/Qt\ Creator -help

디렉터리에서 프로젝트 열기

특정 디렉터리에 있는 프로젝트를 열려면, 디렉터리 이름을 명령줄 인수로 전달하면 됩니다. ` Qt Creator `는 디렉터리 이름과 일치하는 세션을 찾아 로드합니다. 또는 해당 디렉터리에서 프로젝트 파일을 찾아 엽니다.

예를 들어, Windows에서는:

C:\qtcreator\bin>qtcreator.exe C:\Examples\alarms

‘명령줄 옵션항목도 참조하십시오 .

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.