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> OptionsThe following table lists the command-line options recognized by uic.
ExamplesIf 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). © 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia. Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. |