Qt Widgets デザイナー

さらに、QFormBuilder クラスは、実行時に UI ファイルからユーザー・インターフェースを構築する可能性を提供します。

注意: このドキュメントでは、Qt Widgets Designerというツールと、Qt Widgets のグラフィカル・ユーザー・インターフェースの構築に関連するクラスについて説明します。 Qt Design Studioは、Qt Quick ユーザー・インターフェースの UI 設計と実装のすべてのステップをカバーする UI 構成ツールです。

モジュールの使用

Qt モジュールの C++ API を使用するには、モジュール・ライブラリを直接、または他の依存関係 を介してリンクする必要があります。CMakeや qmakeなど、いくつかのビルドツールはこのための専用サポートを持っています。

CMake でのビルド

find_package() コマンドを使用して、必要なモジュール・コンポーネントをQt6 パッケージから探します:

find_package(Qt6 REQUIRED COMPONENTS Designer)
target_link_libraries(mytarget PRIVATE Qt6::Designer)

詳細については、CMakeによるビルドの概要を参照してください。

qmakeでのビルド

qmakeでビルドするようにモジュールを設定するには、プロジェクトの.proファイルにQT 変数の値としてモジュールを追加します:

QT += designer

記事とガイド

これらの記事には、Qt Widgets Designerに関する情報が含まれています。

API リファレンス

API リファレンス資料へのリンクです。

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