source: trunk/doc/src/development/uic.qdoc

Last change on this file was 846, checked in by Dmitry A. Kuminov, 14 years ago

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

  • Property svn:eol-style set to native
File size: 2.5 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
4** All rights reserved.
5** Contact: Nokia Corporation ([email protected])
6**
7** This file is part of the documentation of the Qt Toolkit.
8**
9** $QT_BEGIN_LICENSE:FDL$
10** Commercial Usage
11** Licensees holding valid Qt Commercial licenses may use this file in
12** accordance with the Qt Commercial License Agreement provided with the
13** Software or, alternatively, in accordance with the terms contained in a
14** written agreement between you and Nokia.
15**
16** GNU Free Documentation License
17** Alternatively, this file may be used under the terms of the GNU Free
18** Documentation License version 1.3 as published by the Free Software
19** Foundation and appearing in the file included in the packaging of this
20** file.
21**
22** If you have questions regarding the use of this file, please contact
23** Nokia at [email protected].
24** $QT_END_LICENSE$
25**
26****************************************************************************/
27
28/*!
29 \page uic.html
30 \title User Interface Compiler (uic)
31 \ingroup qttools
32 \keyword uic
33
34 \omit KEEP THIS FILE SYNCHRONIZED WITH uic.1 \endomit
35
36 This page documents the \e{User Interface Compiler} for the Qt GUI
37 toolkit. The \c uic reads an XML format user interface definition
38 (\c .ui) file as generated by \l{designer-manual.html}{Qt
39 Designer} and creates a corresponding C++ header file.
40
41 Usage:
42 \snippet doc/src/snippets/code/doc_src_uic.qdoc 0
43
44 \section1 Options
45
46 The following table lists the command-line options recognized by
47 \c uic.
48
49 \table
50 \header \o Option \o Description
51 \row \o \c{-o <file>} \o Write output to \c <file> instead of to standard output.
52 \row \o \c{-tr <func>} \o Use \c <func> for translating strings instead of \c tr().
53 \row \o \c{-p} \o Don't generate guards against multiple inclusion (\c #ifndef FOO_H ...).
54 \row \o \c{-h} \o Display the usage and the list of options.
55 \row \o \c{-v} \o Display \c{uic}'s version number.
56 \endtable
57
58 \section1 Examples
59
60 If you use \c qmake, \c uic will be invoked automatically for
61 header files.
62
63 Here are useful makefile rules if you only use GNU make:
64
65 \snippet doc/src/snippets/code/doc_src_uic.qdoc 1
66
67 If you want to write portably, you can use individual rules of the
68 following form:
69
70 \snippet doc/src/snippets/code/doc_src_uic.qdoc 2
71
72 You must also remember to add \c{ui_foo.h} to your \c HEADERS
73 (substitute your favorite name).
74*/
Note: See TracBrowser for help on using the repository browser.