blob: a84e8ee4fcfb64c38348d843d3da61d299e9f556 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
Hi newbie,
this directory contains a set of examples for various
API you may want to use. The examples go from simple
to harder and must be understand as an extension
of the examples from Qt in your source package.
Be sure to look there at first and at their excelent
tutorials as well.
Note: that some files are found in apps/Examples to really
show how to include apps properly.
Note: to integrate your apps into the build
make clean-configs
put your application into a sourcedir
edit $OPIEDIR/packages
make
Naming Conventions:
Most of the time we prefix member variables with m_. This allows
us to see if a variable in a function is a member
or on the stack.
Function naming we use setFooBar() but fooBar() to get the
value. So please skip the get you're used from Java.
Other than that please try to avoid #ifdef and #defines
use const but we do not have any coding style convetions.
simple/ - Simple Widget with quit button
simple-icon - Simple Widget with loading resources and playing simple sound
simple-main - Simple QMainWindow usage with toolbar and actions
main-tab - QMainWindow with central tab widget
simple-pim - QMainWindow + QListView + PIM + QCOP
big-pim - Usage of Opie PIM with BigScreen Extension
Compile by setting your environment (QTDIR, QMAKESPEC, PATH, OPIEDIR )
qmake -o Makefile example.pro
|