PDA

View Full Version : how to create .cpp file of designer



sh123
13th December 2008, 08:25
I am new to designer please tell me how to create .cpp file of designer

msmihai
13th December 2008, 09:16
well you don't need that . the designer generates a "ui" file, let's say you call it "form1.ui".
when you compile the project, qmake automatically generates a file called "ui_form1.h" which has all the definitions you need.

sh123
13th December 2008, 10:38
qmake automatically generates a file called "ui_form1.h" is understood but u didn't say anything abt .cpp file.I need to do coding which can be done in .cpp file

wagmare
13th December 2008, 13:10
when u run qmake -project and qmake file.pro that design say form.ui is convert as
ui.form.h .... include "ui.form.h" in your .cpp program u are creating for the qt app and use the resources of designed tools by setupUi
see examples in Qt ....

sh123
13th December 2008, 13:24
thanks for the help.ur name is indian.r u from mumbai?

wagmare
13th December 2008, 13:28
yes i am an indian and marati but working in bangalore

sh123
13th December 2008, 14:16
do u know anyone from mumbai who knows qt well.

wagmare
13th December 2008, 14:28
do u know anyone from mumbai who knows qt well.

sorry i dont know any one in mumbai who knows Qt ....:(

sh123
13th December 2008, 14:31
anyways thanks for the help