HEADER EDITOR
Previous
Next
You can get to the globals editor either by going to the
Menubar and selecting "windows | globals
editor" or alt+h on a component.
The globals editor is a series of three editors. All three can be accessed
by their respective tab on the top of the dialog. They are as follows:
Header Editor: The contents of this editor will go into main.h which all
objects (including the main.cpp) will include. Anything put into here is a
global declaration. The editor will try to figure out including pertaining
to Qt, it will fill this file out with these
includes when you try to run the program, of if you close and open the globals
editor.
Main Editor: Everthing in this area will be appended to the main() function
in a seperate file (main.cpp). It may be a seldom used dialog as most things
to start Qt into the event loop are done by QtEZ, it may still be usefull
on occation to put something in here.
Raw Source: You can put source code into here that may not belong in the
GUI objects, came from another project, or are even just C functions. Contents
of this are put into the main.cpp just before the main() function. This means
if just the Main Editor above calls the contents it isn't necesary to prototype
however if you are going to use this for other features then be sure to put
valid declarations and prototypes into the Header Editor (as described above).
Signature/Comments: The contents of this do NOT make it to the source code
dumping, instead this is just used so you can put your name and documentation
for a .qtz inside the same file. It also allows you to tell people where to
contact you, or how to get updates.