ファイル

プロジェクトにファイルを追加するには、ファイルテンプレートを使用します。

Project >Add New Item >Installed >Visual C++ >Qt にアクセスしてください。

新規アイテムの追加ダイアログ

テンプレート追加するファイル
Qt .runsettings FileQt .runsettings ファイルをQt Test アプリケーションプロジェクトに追加します。
Qt Classアプリケーションプロジェクトに Qt クラスを追加します。
Qt Dialog Form File (Button Bottom)Qt Widgets アプリケーションプロジェクトに、OK とCancel ボタンを下部に持つダイアログを追加します。
Qt Dialog Form File (Button Right)右端にボタンがあるダイアログをQt Widgets アプリケーションプロジェクトに。
Qt MainWindow Form FileフォームファイルをQt Widgets アプリケーションプロジェクトに。
Qt QML Fileカスタム QML タイプをQt Quick アプリケーションプロジェクトに。
Qt QML Module DefinitionQt Quick アプリケーションプロジェクトで使用するカスタム QML タイプを指定するqmldir ファイル。
Qt Resource FileQtリソースファイル(.qrc)をアプリケーションプロジェクトに。
Qt Translation FileQt翻訳ファイル(.ts)をアプリケーションプロジェクトに追加します。
Qt Widget Form FileQt Widgets フォームファイル(.ui)をアプリケーションプロジェクトへ。
Qt Widgets ClassQt Widgets クラスをQt Widgets アプリケーションプロジェクトに追加します。

以下のトピックでは、さまざまな種類のファイルをプロジェクトに追加する方法について説明します:

アプリケーションのチュートリアルには、プロジェクトにファイルを追加するためにファイルテンプレートを使用する例が含まれています:

プロジェクトも参照してください 。

© 2026 The Qt Company Ltd. 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.