UIフォームファイルの作成

ウィジェットベースのUIをデザインするには、Qt Widgets Designer 。

新しい.ui ファイルをプロジェクトに追加するには、Project >Add New Item >Installed >Visual C++ >Qt > と進みます。 Qt Widgets Form File.

Qtウィジェットクラスウィザード

通常、フォームファイルにシグナルやスロットを追加するには、生成されたコードをQWidget のサブクラスにラップする必要があります。そのため、Qt VS Tools は、空の UI フォームとともに、.h と.cpp ファイルを作成します。

Tutorial:Qt Widgets application,StartQt Widgets Designer, andQt Widgets Designer Manualも参照してください 。

© 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.