User Interface Compiler (uic)
This page documents the User Interface Compiler for the Qt GUI toolkit. The uic reads an XML format user interface definition (.ui) file as generated by Qt Designer and creates a corresponding C++ header file.
Usage:
uic [options] <uifile>
Options
The following table lists the command-line options recognized by uic.
Option | Description |
---|---|
-o <file> | Write output to <file> instead of to standard output. |
-tr <func> | Use <func> for translating strings instead of tr(). |
-p | Don't generate guards against multiple inclusion (#ifndef FOO_H ...). |
-h | Display the usage and the list of options. |
-v | Display uic's version number. |
Examples
If you use qmake, 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).
반응형
'QT' 카테고리의 다른 글
[QT] How to create .pri file with Qt creator (0) | 2013.12.03 |
---|---|
[QT] QT에서 동적으로 ui 로딩하기 위한 세팅법 (0) | 2013.12.03 |
[QT][Windows] using .pro file (0) | 2013.12.03 |