마법사 추가

Qt Creator 에는 클래스, 파일 및 프로젝트를 추가하는 마법사가 있으며, 이를 복사하고 편집하여 나만의 마법사를 만들 수 있습니다. 사용자 설정 디렉터리의 templates/wizards/ 디렉터리에 마법사 디렉터리를 만듭니다.

C++ 클래스 마법사의 클래스 정의 대화 상자

새 마법사를 만들려면 다음과 같이 하세요:

  1. -customwizard-verbose 인수를 사용하여 Qt Creator 을 시작하여 마법사 개발 중에 피드백을 받습니다. 자세한 내용은 자세한 정보 출력을 참조하세요.
  2. 마법사 개발을 위한 팁에 설명된 대로 InspectFactory.Reset 작업에 대한 키보드 단축키를 설정합니다.
  3. 마법사가 포함된 디렉터리를 복사하고 이름을 바꿉니다. 예를 들어 share/qtcreator/templates/wizards/classes/cpp$HOME/.config/QtProject/qtcreator/templates/wizards/classes/mycpp 으로 복사합니다.
  4. Factory.Reset 작업을 사용하여 Qt Creator 을 다시 시작하지 않고 File > New File 에 마법사가 나타나도록 합니다.
  5. 사용자 지정 마법사에 설명된 대로 마법사 구성 파일( wizard.json )을 열어 편집합니다.
  6. id 을 고유한 것으로 변경합니다. 마법사는 category 내에서 알파벳 순서로 ID를 기준으로 정렬됩니다. 선행 문자를 사용하여 마법사의 위치를 지정할 수 있습니다. 예를 들어 B.MyClass 입니다.

명령줄에서 Qt Creator 실행사용자 지정 마법사도 참조하세요 .

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.