[190] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
| 2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/doc/winsystem.doc:36 -->
|
---|
| 3 | <html>
|
---|
| 4 | <head>
|
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
| 6 | <title>Window System-specific Notes</title>
|
---|
| 7 | <style type="text/css"><!--
|
---|
| 8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
| 9 | a:link { color: #004faf; text-decoration: none }
|
---|
| 10 | a:visited { color: #672967; text-decoration: none }
|
---|
| 11 | body { background: #ffffff; color: black; }
|
---|
| 12 | --></style>
|
---|
| 13 | </head>
|
---|
| 14 | <body>
|
---|
| 15 |
|
---|
| 16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
| 17 | <tr bgcolor="#E5E5E5">
|
---|
| 18 | <td valign=center>
|
---|
| 19 | <a href="index.html">
|
---|
| 20 | <font color="#004faf">Home</font></a>
|
---|
| 21 | | <a href="classes.html">
|
---|
| 22 | <font color="#004faf">All Classes</font></a>
|
---|
| 23 | | <a href="mainclasses.html">
|
---|
| 24 | <font color="#004faf">Main Classes</font></a>
|
---|
| 25 | | <a href="annotated.html">
|
---|
| 26 | <font color="#004faf">Annotated</font></a>
|
---|
| 27 | | <a href="groups.html">
|
---|
| 28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
| 29 | | <a href="functions.html">
|
---|
| 30 | <font color="#004faf">Functions</font></a>
|
---|
| 31 | </td>
|
---|
| 32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Window System-specific Notes</h1>
|
---|
| 33 |
|
---|
| 34 |
|
---|
| 35 | <p> Qt is a multiplatform GUI toolkit, so almost the entire API is the
|
---|
| 36 | same on all platforms and window systems. If you wish to use
|
---|
| 37 | platform-specific features, and still maintain a platform-independent
|
---|
| 38 | source tree, you should protect the platform-specific code using the
|
---|
| 39 | appropriate <tt>#ifdef</tt> statements (see below).
|
---|
| 40 | <p> <!-- toc -->
|
---|
| 41 | <ul>
|
---|
| 42 | <li><a href="#1"> Qt/X11
|
---|
| 43 | </a>
|
---|
| 44 | <li><a href="#2"> Qt/Windows
|
---|
| 45 | </a>
|
---|
| 46 | <ul>
|
---|
| 47 | <li><a href="#2-1"> Microsoft Visual Studio 2005 Deployment Issues
|
---|
| 48 | </a>
|
---|
| 49 | </ul>
|
---|
| 50 | <li><a href="#3"> Qt/Mac OS X
|
---|
| 51 | </a>
|
---|
| 52 | <li><a href="#4"> Qt/Embedded
|
---|
| 53 | </a>
|
---|
| 54 | </ul>
|
---|
| 55 | <!-- endtoc -->
|
---|
| 56 |
|
---|
| 57 | <p> For information about which platforms are supported by Qt, see the
|
---|
| 58 | <a href="http://www.trolltech.com/products/platforms/">Platform
|
---|
| 59 | Notes</a>. For information on distributing Qt applications, see
|
---|
| 60 | <a href="distributingqt.html">Deploying Qt Applications</a>.
|
---|
| 61 | <p> <a name="x11"></a>
|
---|
| 62 | <h2> Qt/X11
|
---|
| 63 | </h2>
|
---|
| 64 | <a name="1"></a><p> When compiling for this platform, the macro <tt>Q_WS_X11</tt> is defined.
|
---|
| 65 | <p> <em>Not documented here. Please contact Trolltech Technical Support if you have queries.</em>
|
---|
| 66 | <p> <center><img src="dependencies.png" alt="Qt/X11 Dependencies"></center>
|
---|
| 67 | <p> Note: You must compile with <em>both</em> Xft and XRender support to get
|
---|
| 68 | alpha transparency support for pixmaps and images. Configuring with
|
---|
| 69 | XRender support only is not enough.
|
---|
| 70 | <p> <a name="win"></a>
|
---|
| 71 | <h2> Qt/Windows
|
---|
| 72 | </h2>
|
---|
| 73 | <a name="2"></a><p> When compiling for this platform, the macro <tt>Q_WS_WIN</tt> is defined.
|
---|
| 74 | <p> <em>Not documented here. Please contact Trolltech Technical Support if you have queries.</em>
|
---|
| 75 | <p> <h3> Microsoft Visual Studio 2005 Deployment Issues
|
---|
| 76 | </h3>
|
---|
| 77 | <a name="2-1"></a><p> Executables compiled with Microsoft Visual Studio 2005 require
|
---|
| 78 | a manifest file that points to the C and C++ runtime libraries that
|
---|
| 79 | Qt and the application itself depend on. The manifest file is
|
---|
| 80 | automatically generated for you, but it always needs to be located
|
---|
| 81 | in the same directory as the application executable.
|
---|
| 82 | <p> It is important to remember to deploy the manifest file when
|
---|
| 83 | deploying an application.
|
---|
| 84 | <p> <b>Note:</b>
|
---|
| 85 | If you don't want to deploy your application with the .manifest file,
|
---|
| 86 | you can embed the manifest in the executable as a resource with the
|
---|
| 87 | <tt>mt</tt> command (distributed with Visual Studio 2005).
|
---|
| 88 | <p> If you have further problems, please see the MSDN document,
|
---|
| 89 | "Side-by-side Assemblies Reference".
|
---|
| 90 | <p> <a name="macosx"></a>
|
---|
| 91 | <h2> Qt/Mac OS X
|
---|
| 92 | </h2>
|
---|
| 93 | <a name="3"></a><p> When compiling for this platform, the macro <tt>Q_WS_MACX</tt> is defined.
|
---|
| 94 | <p> <ul>
|
---|
| 95 | <li> <a href="mac-differences.html">Qt/Mac issues</a>
|
---|
| 96 | </ul>
|
---|
| 97 | <p> <a name="qws"></a>
|
---|
| 98 | <h2> Qt/Embedded
|
---|
| 99 | </h2>
|
---|
| 100 | <a name="4"></a><p> When compiling for this platform, the macro <tt>Q_WS_QWS</tt> is defined
|
---|
| 101 | (the window system is literally the Qt Window System).
|
---|
| 102 | <p> <ul>
|
---|
| 103 | <li> <a href="emb-install.html">Installation</a>
|
---|
| 104 | <li> <a href="emb-performance.html">Qt/Embedded performance tuning</a>
|
---|
| 105 | <li> <a href="emb-running.html">Running Qt/Embedded applications</a>
|
---|
| 106 | <li> <a href="emb-porting.html">Porting your applications to Qt/Embedded</a>
|
---|
| 107 | <li> <a href="emb-fonts.html">Font formats and definitions</a>
|
---|
| 108 | <li> <a href="emb-charinput.html">Character input (keyboard, pen, ...)</a>
|
---|
| 109 | <li> <a href="emb-pointer.html">Pointer handling (mouse, pen, ...)</a>
|
---|
| 110 | <li> <a href="emb-features.html">Reduce memory use with the feature definition file</a>
|
---|
| 111 | </ul>
|
---|
| 112 | <p>
|
---|
| 113 | <!-- eof -->
|
---|
| 114 | <p><address><hr><div align=center>
|
---|
| 115 | <table width=100% cellspacing=0 border=0><tr>
|
---|
| 116 | <td>Copyright © 2007
|
---|
| 117 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
| 118 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
| 119 | </table></div></address></body>
|
---|
| 120 | </html>
|
---|