PDA

View Full Version : how to create *.cpp file fm *.ui



Shuchi Agrawal
10th January 2007, 13:40
i m using Qt4 evaluation version
n making a .ui file n a .cpp(main) file.
i can execute
qmake -project
qmake
nmake
but now i want the cmds to get a *.cpp file fm *.ui file using uic?
when i m sayig uic -o x.cpp x.ui
then i m getting the same file content as i m getting with uic -o x.h x.ui

evgenM
10th January 2007, 13:54
http://doc.trolltech.com/4.0/porting4-designer.html#uic-output

Brandybuck
10th January 2007, 21:07
Qt4 uic only has outputs include file, there is no implementation file like there was in Qt3. All you need is uic -o x.h x.ui, read x.h and you will see what I mean.