Integrating Qt Examples/zh

From Qt Wiki
Jump to navigation Jump to search
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

简体中文 English Русский Spanish Italian

集成 Qt 的例子

一旦你编写了一个例子(见 编写Qt例子)并为其编写了文档,你需要下列操作来确保它在Qt的构建与文档系统内工作正常:

  1. 确保例子的 .pro 文件包含安装的标准规则。
  2. 添加例子目录到父目录内的 .pro 文件中。
  3. doc/src/example 目录中为该例子添加文档。确保创建一个文件名以 -example.png 结尾的屏幕截图。
  4. 确保例子和文档文件被正确地授权。为例子和文档使用现有许可证头部(license headers)并相应地更新年份。
  5. 在相关的节中添加一个到例子文档文件 doc/src/examples.qdoc 的链接。
  6. 通过编辑文件 demos/qtdemo/xml/examples.xml 将例子添加到 qtdemo。