📄 porting-qws.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Qt Toolkit - Porting your applications to Qt/Embedded</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }--></style></head><body bgcolor="#ffffff"><p><table width="100%"><tr><td><a href="index.html"><img width="100" height="100" src="qtlogo.png"alt="Home" border="0"><img width="100"height="100" src="face.png" alt="Home" border="0"></a><td valign="top"><div align="right"><img src="dochead.png" width="472" height="27"><br><a href="classes.html"><b>Classes</b></a>- <a href="annotated.html">Annotated</a>- <a href="hierarchy.html">Tree</a>- <a href="functions.html">Functions</a>- <a href="index.html">Home</a>- <a href="topicals.html"><b>Structure</b> <font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qte</font></a></div></table><h1 align="center"> Porting your applications to Qt/Embedded</h1><br clear="all">Existing Qt applications should require no porting provided there is noplatform dependent code. Platform dependent code includes system calls,calls to the underlying window system (Windows or X11), and Qt platformspecific methods such as QApplication::x11EventFilter().<p>For cases where it is necessary to use platform dependent code there aremacros defined that can be used to enable/disable code for each platformusing #ifdef directives:<p><table><tr><th>Platform</th><th>Macro</th></tr><tr><td>Qt/X11</td><td>Q_WS_X11</td></tr><tr><td>Qt/Windows</td><td>Q_WS_WIN</td></tr><tr><td>Qt/Embedded</td><td>Q_WS_QWS</td></tr></table><p>Qt/Embedded also requires the following flags to be defined when compilingapplications:<pre>-DQWS -fno-exceptions -fno-rtti</pre><p>Exceptions and RTTI are disabled in Qt/Embedded because they incur a largeoverhead in both size and speed.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -