이 페이지에서

명령줄에서 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.