Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

User Interface Compiler (tquic)

This page documents the User Interface Compiler for the TQt GUI toolkit. The tquic reads a user interface definition (.ui) file in XML as generated by TQt Designer and creates corresponding C++ header or source files. It can also generate an image file to embed raw image data in C++ source code.

Options

File Generation Options

Generate declaration:

tquic  [options]  <file>

Generate implementation:

tquic  [options] -impl <headerfile> <file>

Generate image collection:

tquic  [options] -embed <project> <image1> <image2> <image3> ...

For convenience, tquic can also generate declaration or implementation stubs for subclasses.

Generate subclass declaration:

tquic  [options] -subdecl <classname> <headerfile> <file>

Generate subclass implementation:

tquic  [options] -subimpl <classname> <headerfile> <file>

General Options

Usage

tquic is almost always invoked by make (1), rather than by hand.

Here are useful makefile rules if you only use GNU make:

    %.h: %.ui
        tquic $< -o $@

    %.cpp: %.ui
        tquic -impl $*.h $< -o $@
If you want to write portably, you can use individual rules of the following form:
    NAME.h: NAME.ui
        tquic $< -o $@

    NAME.cpp: NAME.ui
        tquic -impl $*.h $< -o $@
You must also remember to add NAME.cpp to your SOURCES (substitute your favorite name) variable and NAME.o to your OBJECTS variable.

(While we prefer to name our C++ source files .cpp, the tquic doesn't care, so you can use .C, .cc, .CC, .cxx or even .c++ if you prefer.)


Copyright © 2007 TrolltechTrademarks
TQt 3.3.8