I'm not quite sure that this is what you want, but if you have a "my_file.ui" and want to generate the source code from it, you can do the following:

uic -o my_file.h my_file.ui