このページでは

Qt Widgets Designer

Qt Widgets Designer 用の独自のカスタムウィジェットプラグインを作成するためのクラスや、Qt Widgets Designer のコンポーネントにアクセスするためのクラスを提供します。

さらに、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 リファレンス資料へのリンクです。

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