<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /home/gvatteka/dev/qt-4.3/doc/src/emb-differences.qdoc --> <head> <title>Porting Qt Applications to Qtopia Core</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <h1 align="center">Porting Qt Applications to Qtopia Core<br /><small></small></h1> <p>Existing Qt applications should require no porting provided there is no platform dependent code.</p> <p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0"> <thead><tr valign="top" class="qt-style"><th>Platform Dependent Code</th></tr></thead> <tr valign="top" class="odd"><td>Platform dependent code includes system calls, calls to the underlying window system (Windows or X11), and Qt platform specific methods such as QApplication::x11EventFilter().<p>For cases where it is necessary to use platform dependent code there are macros defined that can be used to enable and disable code for each platform using <tt>#ifdef</tt> directives:</p> <ul> <li>Qtopia Core: Q_WS_QWS</li> <li>Qt/Mac: Q_WS_MAC</li> <li>Qt/Windows: Q_WS_WIN</li> <li>Qt/X11: Q_WS_X11</li> </ul> </td></tr> </table></p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="30%">Copyright © 2007 <a href="trolltech.html">Trolltech</a></td> <td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="30%" align="right"><div align="right">Qt Jambi </div></td> </tr></table></div></address></body> </html>