Specifications

SHARP CORPORATION
Sharp SL-series Zaurus “Qtopia” Development Start-up Guide
Ver 1.11, February 28, 2003, 39/63
(STEP 7) Modify the project file
By executing the make in STEP 5 above, you now have form1.h header file and form1.cpp source file from the
form1.ui file. Thus, you may want to modify your demo.pro project file so that you can build your application
correctly.
Modifications that you need to take care of are; (i) add form1.h to the HEADERS tag, (ii) specify both main.cpp
and form1.cpp to the SOURCES tag, (iii) remove form1.ui statement from the INTERFACES tag. Make sure to
remove form1.ui statement from the INTERFACES tag, or it will automatically generate the source and header
files for form1.ui, and will remove all of the changes you added to the source file in STEP 6.
demo.pro (modified)
TEMPLATE = app
CONFIG = qt warn_on release
HEADERS = form1.h
SOURCES = main.cpp form1.cpp
INTERFACES =
INCLUDEPATH += $(QPEDIR)/include
DEPENDPATH += $(QPEDIR)/include/qpe
TARGET = demo
LIBS += -lqpe
(STEP 8) Re-create Makefile by “tmake”, and build
Once you have modified the project file, you would then want to recreate Makefile, and then make to build your
application. Use “tmake” to create Makefile, and the execute “make”:
$ tmake -o Makefile demo.pro
$ make
Note that you need to re-create the project file if you change the GUI design by the QtDesigner tool.