1uic(1)                      General Commands Manual                     uic(1)
2
3
4

NAME

6       uic - Qt user interface compiler
7

SYNOPSIS

9       uic [options] file
10

DESCRIPTION

12       This page documents the User Interface Compiler for the Qt GUI toolkit.
13       The uic reads a user interface definition (.ui) file in XML  as  gener‐
14       ated  by  Qt  Designer  and  creates corresponding C++ header or source
15       files. It also generates an image file that embeds raw  image  data  in
16       C++ source code.
17
18       Generate declaration:
19            uic  [options]  <file>
20
21       Generate implementation:
22            uic  [options] -impl <headerfile> <file>
23               <headerfile>:    name of the declaration file
24
25       Generate image collection:
26            uic  [options] -embed <project> <image1> <image2> <image3> ...
27               <project>:       project name
28               <image[1..n]>:   image files
29
30       For  convenience,  uic  can also generate declaration or implementation
31       stubs for subclasses.
32
33       Generate subclass declaration:
34            uic   [options]  -subdecl   <subclassname>   <baseclassheaderfile>
35       <file>
36               <subclassname>:     name of the subclass to generate
37               <baseclassheaderfile>:    declaration file of the baseclass
38
39       Generate subclass implementation:
40            uic  [options] -subimpl <subclassname> <subclassheaderfile> <file>
41               <subclassname>:     name of the subclass to generate
42               <subclassheaderfile>:    declaration file of the subclass
43
44

GENERAL OPTIONS

46       -o file
47              Write output to file rather than to stdout.
48
49       -nofwd Omit  forward  declarations  of  custom classes in the generated
50              header file. This is necessary if typedef classes are used.
51
52       -tr func
53              Use func() instead of tr() for internationalization.
54
55       -version
56              Display the version of uic and exit.
57
58

USAGE

60       uic is almost always invoked by make(1), rather than by hand.
61
62       Here are useful makefile rules if you only use GNU make:
63
64           %.h: %.ui
65                   uic $< -o $@
66           %.cpp: %.ui
67                   uic -impl $*.h $< -o $@
68
69       If you want to write portably, you can use individual rules of the fol‐
70       lowing form:
71
72           NAME.h: NAME.ui
73                   uic $< -o $@
74           NAME.cpp: NAME.ui
75                   uic -impl $*.h $< -o $@
76
77       You must also remember to add NAME.cpp to your SOURCES (substitute your
78       favorite name) variable and NAME.o to your OBJECTS variable.
79
80       (While we prefer to name our C++ source files  .cpp,  the  uic  doesn't
81       care, so you can use .C, .cc, .CC, .cxx or even .c++ if you prefer.)
82

SEE ALSO

84       http://www.trolltech.com/
85

AUTHOR

87       Trolltech ASA <info@trolltech.com>
88
89
90
91Trolltech AS                      2 Aug 2001                            uic(1)
Impressum