C++ 클래스 생성

C++ 프로젝트에 추가할 수 있는 새 클래스의 C++ 헤더와 소스 파일을 생성하려면 다음과 같이 하세요:

  1. File > New File > C/C++ > C++ Class > Choose 를 선택합니다.
  2. 클래스 이름, 베이스 클래스, 클래스의 헤더 및 소스 파일을 지정합니다.

    클래스 정의 대화 상자

마법사는 네임스페이스를 지원합니다. 네임스페이스를 사용하려면 Class name 필드에 정규화된 클래스 이름을 입력합니다. 예: MyNamespace::MySubNamespace::MyClass. 마법사는 입력하는 대로 기존 네임스페이스 및 클래스 이름을 제안합니다.

프로젝트 및 클래스 마법사를 직접 만들 수도 있습니다.

파일 만들기, C++ 파일 명명 기본 설정, 프로젝트 마법사 사용사용자 지정 마법사도 참조하세요 .

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.