此頁麵文檔
uic (用戶界麵編譯器)
為
Qt Widgets
模塊。
uic
讀取 XML 格式的用戶界麵定義 (
.ui
) 文件如生成通過
Qt Widgets Designer
and creates a corresponding C++ header file or Python source file.
用法:
uic [options] <uifile>
下錶列齣的命令行選項識彆通過
uic
.
| 選項 | 描述 |
|---|---|
-h, --help
|
顯示命令行選項的幫助。 |
-help-all
|
Displays help including Qt specific options. |
-v, --version
|
顯示版本信息。 |
-d, --dependencies
|
顯示依賴。 |
-o, --output <file>
|
Place the output into <file> |
-a, --no-autoconnection
|
Do not generate a call to QObject::connectSlotsByName(). |
-p, --no-protection
|
Disable header protection. |
-n, --no-implicit-includes
|
Disable generation of #include-directives. |
--postfix <postfix>
|
Postfix to add to all generated classnames. |
--tr, --translate <function>
|
Use <function> for i18n. |
--include <include-file>
|
Add #include <include-file> to <file>. |
-g, --generator <python|cpp>
|
選擇生成器。 |
-c, --connections <pmf|string>
|
Connection syntax. |
--idbased
|
Use id based function for i18n |
--from-imports
|
Python: generate imports relative to '.' |
--absolute-imports
|
Python: generate absolute imports |
--rc-prefix
|
Python: Generate "rc_file" instead of "file_rc" import |
--star-imports
|
Python: Use * imports |
--python-paths <pathlist>
|
Python paths for –absolute-imports. |
見 在 C++ 應用程序使用 Designer UI 文件 or 在 Qt for Python 應用程序使用 Designer UI 文件 .