Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

Porting Your Applications to Qtopia Core

Existing Qt applications should require no porting provided there is no platform dependent code. Platform dependent code includes system calls, calls to the underlying window system (Windows or X11), and Qt platform specific methods such as QApplication::x11EventFilter().

For cases where it is necessary to use platform dependent code there are macros defined that can be used to enable/disable code for each platform using #ifdef directives:

PlatformMacro
Qtopia CoreQ_WS_QWS
Qt/MacQ_WS_MAC
Qt/WindowsQ_WS_WIN
Qt/X11Q_WS_X11

The default configuration of Qtopia Core requires the following flags to be defined when compiling applications:

    -DQWS -fno-exceptions -fno-rtti

Exceptions and RTTI are disabled in Qtopia Core because they incur a large overhead in terms of both size and speed.


Copyright © 2005 Trolltech Trademarks
Qt 4.1.0
Hosted by uCoz