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.