Qt Assistant 的配置文件qhp--->qch 和qhcp--->qhc详解与生成
2012-10-14 17:58
399 查看
Qt Assistant 这个exe文件可以被我们利用到我们自己的程序为我们添加help,是一个文档浏览器,它的搜索功能,还有最主要的就是他可以让客户自己定义自己索要显示的文档,也就是qch文档。当然我们要给他写好给他,显示那个文档就看他自己了,
1.qhp 与qch。qhp是Qt Help Project的缩写,qch是Qt Compressed Help的缩写。qch就是html的压缩文件,你把很多的html压缩了,之后压缩成qch。
2.qhcp是Qt Help Collection Project的缩写生成qhc文件,qhc:是Qt Help Collection缩写。它负责把很多的qch文件collection起来注册到assistant里。
目前qchp 和qhp 是我们要写的配置文件(xml)
它的语法如下:
1. qhp配置文件
<?xml version="1.0" encoding="gb2312"?> //如果你用写的help是中文的一定要改gb2312 <QtHelpProject version="1.0"> //是qhp文件 <namespace>com.help.base</namespace>//空间名字,每一个qhp都要有一个不一样的空间名字 <virtualFolder>doc</virtualFolder> //一个虚拟的文件夹 <filterSection> <toc> //帮助的目录,最好在四级以内,<section>注意要配对啊 <section title="软件基础介绍" ref="./base/helpintro.html"> <section title="软件概述" ref="./base/index.html"></section> <section title="执行软件" ref="./base/index.html#startrobot">//#表示要查到的关键字html关键字 <section title="Tools" ref="./base/index.html#tools"> <section title="Open" ref="./base/index.html#open"></section> </section> </section> <section title="Close" ref="./base/index.html#close"></section> </section> </toc> <keywords> //搜索时要搜索的关键字 <keyword name="Tools" ref="./base/helpintro.html"/> <keyword name="Open" ref="./base/helpintro.html"/> <keyword name="Close" ref="./base/helpintro.html"/> <keyword name="软件概述" ref="./base/helpintro.html"/> <keyword name="执行软件" ref="./base/helpintro.html"/> </keywords> <files> //你所用到的html、png、css所有你用到的文件都要注册一下 <file>./base/helpintro.html</file> <file>./base/images/Open.png</file> <file>./base/images/Close.png</file> <file>./base/style/help.css</file> </files> </filterSection> </QtHelpProject>1. 2.
相关文章推荐
- Qt Assistant 的配置文件qhp--->qch 和qhcp--->qhc详解与生成
- openstack_ice之wsgi详解(paste从ini配置文件->routesr具体发布流程)
- Spring、MyBatis的整合数据映射器类(UserMapper->iocContext.xml)配置文件详解
- <meta attribute="???">xxxx</meta>的用法 - hibernate配置文件生成java类
- openstack_ice之wsgi详解(paste从ini配置文件->routesr具体发布流程)
- centos shell基础 alias 变量单引号 双引号 history 错误重定向 2>&1 jobs 环境变量 .bash_history source配置文件 nohup & 后台运行 cut,sort,wc ,uniq ,tee ,tr ,split, paste cat> 2.txt <<EOF 通配符 glob模式 发邮件命令mail 2015-4-8 第十二节课
- logback logback.xml常用配置详解(三) <filter>
- logback 常用配置详解(二) <appender>
- 只有在配置文件或 Page 指令中将 enableSessionState 设置为 true 时,才能使用会话状态。还请确保在应用程序配置的 <configuration>
- <转载> nginx服务器安装及配置文件详解 https://segmentfault.com/a/1190000002797601
- 关于maven的配置文件pom.xml中<classifier>jdk15</classifier>在gradle中的表达问题
- 删除配置文件 Xcode->Code Signing->Provisioning Profile
- logback logback.xml常用配置详解(二)<appender>
- logback 常用配置详解(三) <filter>
- 基础篇第一版---Linux 文件属性与目录配置 &lt;摘自鸟哥的私房菜&gt;
- logback logback.xml常用配置详解(三) <filter>
- [原]java专业程序代写(qq:928900200),学习笔记之基础入门<Hibernate_配置详解>(三十六)
- nginx配置文件各参数详解 &nb…
- iOS- <项目笔记>项目配置常见文件
- Android清单文件详解(一) ---- 一切从<manifest>开始