User Interface Compiler (ユーアイシー)

このページは User Interface Compilerモジュールの Qt Widgetsモジュールについて説明します。uicQt Widgets Designerによって生成された XML 形式のユーザーインターフェース定義 (.ui) ファイルを読み込み、対応する C++ ヘッダーファイルまたは Python ソースファイルを作成します。

使用方法

uic [options] <uifile>

オプション

次の表は、uic で認識されるコマンドライン・オプションの一覧です。

オプション説明
-h, --helpコマンドラインオプションのヘルプを表示します。
-help-allQt 固有のオプションを含むヘルプを表示します。
-v, --versionバージョン情報を表示します。
-d, --dependencies依存関係を表示します。
-o, --output <file>出力を <file> に置く
-a, --no-autoconnectionQObject::connectSlotsByName() への呼び出しを生成しない。
-p, --no-protectionヘッダー保護を無効にします。
-n, --no-implicit-includesincludeディレクティブの生成を無効にする。
--postfix <postfix>生成されるすべてのクラス名にPostfixを追加する。
--tr, --translate <function>国際化には <function> を使用。
--include <include-file><include-file>を<file>に追加する。
-g, --generator <python|cpp>ジェネレーターを選択
-c, --connections <pmf|string>接続構文。
--idbased国際化にはidベースの関数を使う。
--from-importsPython: '.' からの相対インポートを生成する。
--absolute-importsPython: 絶対インポートを生成
--rc-prefixPython: 絶対インポートを生成file_rc "の代わりに "rc_file "を生成する import
--star-importsPython:インポートに * を使う
--python-paths <pathlist>absolute-importsのPythonパス。

使用方法

C++ アプリケーションでデザイナー UI ファイルを使用する」またはQt for Python アプリケーションでデザイナー UI ファイルを使用する」を参照してください。

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