User Interface Compiler (uic)
This page documents the User Interface Compiler for the Qt Widgets module. The
uic reads an XML format user interface definition (
.ui) file as generated by Qt Designer and creates a corresponding C++ header file.
uic [options] <uifile>
The following table lists the command-line options recognized by
|Displays help on commandline options.|
|Displays version information.|
|Display the dependencies.|
|Place the output into |
|Do not generate a call to |
|Disable header protection.|
|Disable generation of |
|Postfix to add to all generated classnames.|
|Use <function> for i18n.|
|Add #include |
|Use id based function for i18n|
|Python: generate imports relative to |
If you use
uic will be invoked automatically for header files.
Here are useful makefile rules if you only use GNU make:
ui_%.h: %.ui uic $< -o $@
If you want to write portably, you can use individual rules of the following form:
ui_foo.h: foo.ui uic $< -o $@
You must also remember to add
ui_foo.h to your
HEADERS (substitute your favorite name).
© 2023 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.