Specifications
SHARP CORPORATION
Sharp SL-series Zaurus “Qtopia” Development Start-up Guide
Ver 1.11, February 28, 2003, 38/63
(STEP 4) Create project file
You may want to use the “progen” tool to create the project file for your application. Execute the following
command file you have form1.ui and main.cpp file in your current working directory.
$ progen -o demo.pro
The generated demo.pro file sets main.cpp file for the SOURCES tag, and form1.ui file for its INTERFACES
tag.You would also have to add elements described in the INCLUDEPATH and below:
demo.pro
TEMPLATE = app
CONFIG = qt warn_on release
HEADERS =
SOURCES = main.cpp
INTERFACES = form1.ui
NCLUDEPATH += $(QPEDIR)/include
DEPENDPATH += $(QPEDIR)/include/qpe
TARGET = demo
LIBS += -lqpe
(STEP 5) Create Makefile by “tmake”, and build
Once you have successfully created the project file, you would then want to create Makefile, and then make to
generate source and header file for the GUI design file (.ui). Use “tmake” to create Makefile, and the execute
“make”:
$ tmake -o Makefile demo.pro
$ make
When you execute “make” while the GUI design file (in this example, “form1.ui”) is specified in the INTERFACES
tag of the project file (.pro), it will automatically create the source file as well as the header file based on the
specified .ui file.
(STEP 6) Add other process(es) to the Form1 class (except for the GUI design)
You may want to add the necessary processes (such as SLOT handling etc.) to the generated source file by
executing make.