ウィザードの追加
Qt Creator には、クラス、ファイル、プロジェクトを追加するためのウィザードが用意されており、これらをコピーして編集することで、独自のウィザードを作成できます。ユーザー設定ディレクトリ内のtemplates/wizards/ ディレクトリに、ウィザード用ディレクトリを作成してください。

新しいウィザードを作成するには:
- ウィザード開発中にフィードバックを受け取るには、
-customwizard-verbose引数を指定してQt Creator を起動します。詳細については、「詳細出力」を参照してください。 - 「ウィザード開発のヒント」に記載されているように、Inspect およびFactory.Reset アクションのキーボードショートカットを設定します。
- ウィザードを含むディレクトリをコピーし、名前を変更します。たとえば、
share/qtcreator/templates/wizards/classes/cppを$HOME/.config/QtProject/qtcreator/templates/wizards/classes/mycppとしてコピーします。 - 「Factory.Reset 」アクションを使用して、Qt Creator を再起動せずに、「File 」>「New File 」にウィザードを表示させます。
- 「カスタムウィザード」の説明に従って、ウィザードの設定ファイル `
wizard.json` を開き、編集します。 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.