⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 docwidget.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/doc/mainwidget.doc:95 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><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: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="200" align="left" valign="top"><a href="index.html"><img height="27" width="472" src="dochead.png" border="0"></a><br><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qtopia</font>   <a href="index.html">Home</a> - <a href="qtopiaclasses.html">Classes</a> - <a href="qtopiaannotated.html">Annotated</a> - <a href="qtopiafunctions.html">Functions</a> - <a href="qtindex.html">Qt Embedded</a></td><td align="right" valign="top">  <table border="0" cellpadding="0" cellspacing="0" width="137">  <tr>  <td><a href="http://www.trolltech.com/company/about/trolls.html"><img height="100" width="100" src="face.png" border="0"></a></td>  <td><img height="100" width="100" src="qtlogo.png" align="top" border="0"></td>  </tr>  </table></td></tr></table><p> <p> <h2> Qtopia - The main Document Widget</h2><a name="1"></a><p> Applications that view or edit a particular type or types of files arecalled <em>document-oriented</em> applications. Qtopia has frameworksupport to simplify the implementation of such applications.<p> The top-level widget of a document-oriented application must have a<a href="metaobjects.html">slot</a> declared:<p> <pre>public slot:    void setDocument( const QString&amp; applnk_filename );</pre> <p> This slot should then be implemented to save the application's currentdocument (if any) and to show (and possibly edit) the specifieddocument. An example implementation is:<p> <pre>void Main::setDocument( const QString&amp; applnk_filename ){    <a href="filemanager.html">FileManager</a> fm;    if ( current ) {        if ( !fm.<a href="filemanager.html#saveFile">saveFile</a>( *current, data ) ) {            // error            return;        }        delete current;    }    current = new <a href="doclnk.html">DocLnk</a>( applnk_filename );    if ( !fm.<a href="filemanager.html#loadFile">loadFile</a>( *current, data ) ) {        // error    }}</pre> <p> Document-oriented applications will always declare the the MIME types that theysupport by adding a line to their <a href="files.html#desktop">.desktop</a> file,specifying each supported type, seperated by semi-colons:<p> <pre>    MimeType=type/subtype;type/subtype;...</pre> <p> The subtype can be "*", indicating that this application can processall forms of the given type. Such an application is only invokedif no other more specific application is available.<p> At <a href="distrib.html">installation</a>, you may also choose toexecute the following:<p> <pre>    qtopia-addmimetype type/subtype extension</pre> <p> This will allow plain filenames such as those on CF or SD cards inserted intothe device to be recognized as MIME-typed documents.<p> <!-- eof --><p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright &copy; 2001-2004 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align="right"><div align="right">Qtopia version 2.0.0</div></table></div></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -