PDA

View Full Version : i just copied stylesheet.cpp,.h,main.cpp & related files from trolltech.com & .......



sh123
12th December 2008, 13:54
I just copied stylesheet.cpp,.h,main.cpp & related files from trolltech.com & pasted in a folder named stylesheet & typed qmake -project on command prompt.Then typed qmake stylesheet.pro & then make.It gave error as follows:

In file included from main.cpp:46:
mainwindow.h:49:28: ui_mainwindow.h: No such file or directory
In file included from main.cpp:46:
mainwindow.h:66: error: `Ui' has not been declared
mainwindow.h:66: error: field `ui' has incomplete type
mainwindow.h:69:8: warning: no newline at end of file
main.cpp:56:3: warning: no newline at end of file
mingw32-make[1]: *** [tmp/obj/debug_shared/main.o] Error 1
mingw32-make[1]: Leaving directory `D:/Qt/4.4.3/examples/designer/stylesheet'
mingw32-make: *** [debug-all] Error 2

can somebody please help me

caduel
12th December 2008, 15:17
seems like you forgot to copy mainwindow.ui

sh123
12th December 2008, 15:38
thanks for the help.