db2qthelp — a DocBook book to QtHelp project converter
Introduction
db2qthelp converts a DocBook book to a QtHelp project. It is written in Python and started on the command line.
db2qthelp is in an early stage of development. It works well for me but it may work with my setup only. I try to make it usable nonetheless, so let me know if something does not work. Thanks.
Usage
Given that your xsltproc together with your DocBook look-up paths are set up and that the Qt applications needed to build Qt Help files are in your executable path, you may convert your DocBook book into Qt Help files like this:
db2qthelp.py -i userdocs.xml
That's all 😃. You'll get a .qch and a .qhc file you may use directly in your Qt Help widget…
Options
The script has the following options:
- --config <FILE> / -c <FILE>: Reads the named configuration file
- --input <INPUT> / -i <INPUT>: Defines the DocBook HTML document to parse
- **--destination <DESTINATION> / -d <DESTINATION>: Sets the output folder
- --appname <APPNAME> / -a <APPNAME>: Sets the name of the application
- --css-definition <CSS_DEFINITION>: Defines the CSS definition file to use
- --generate-css-definition: If set, a CSS definition file is generated
- --qhp-template <QHP_TEMPLATE>: Defines the QtHelp project (.qhp) template to use
- --generate-qhp-template: If set, a QtHelp project (.qhp) template is generated
- --qt-path <QT_PATH> / -Q <QT_PATH>: Sets the path to the Qt binaries
- --xslt-path <XSLT_PATH> / -X <XSLT_PATH>: Sets the path to xsltproc
- --help / -h: show this help message and exit
- --version: show program's version number and exit
Examples
db2qthelp -i userdocs.xml
Generates Qt Help files by processing the DocBook book userdocs.xml. The default CSS style sheets will applied, the used binaries are assumed to be in the path.
db2qthelp -i userdocs/ --css-definition my_style.css
Will collect the HTML files located in the folder userdocs, apply the CSS located in my_style.css, and build the Qt Help files from all files found in the given folder.
Documentation
- The complete documentation is located at https://db2qthelp.readthedocs.io/en/latest/
- The github repository is located at: https://github.com/dkrajzew/db2qthelp
- Discussions are open at https://github.com/dkrajzew/db2qthelp/discussions
- The issue tracker is located at: https://github.com/dkrajzew/db2qthelp/issues
- The PyPI page is located at: https://pypi.org/project/db2qthelp/
- The code documentation (pydoc) is located at: http://www.krajzewicz.de/docs/db2qthelp.html
Installation
The current version is 0.4.0. You may install the latest release using pip:
python -m pip install db2qthelp
Or download the latest release from github. You may as well clone or download the db2qthelp git repository. There is also a page about installing db2qthelp which lists further options.
License
db2qthelp is licensed under the GPLv3 license.
Examples / Users
db2qthelp was used to generate the in-app help for the following applications:
- PaletteWB, an MS Windows application for editing color palettes;
- ShaderWB, an MS Windows application for developing GLSL shaders.
ChangeLog
db2qthelp-0.4.0 (24.08.2025)
- code
- deployment
- added installation as a directly callable console script
- tests
- added coveralls integration (
)
- improved tests (
)
- added coveralls integration (
- docs
- reworked documentation
- added automatic readthedocs docs building (
)
- moved to GPLv3
db2qthelp-0.2 (07.01.2023)
- Initial checkin
- Adding configuration options
- Adding a documentation
- Adding first tests
Summary
Well, have fun. If you have any comments / ideas / issues, please submit them to db2qthelp's issue tracker on github.
Metadata
Release files for db2qthelp 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| db2qthelp-0.4.0.tar.gz | 24.2 kB | Without provenance | Details for db2qthelp-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| db2qthelp-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for db2qthelp-0.4.0-py3-none-any.whl |
Total release size: 35.9 kB
Release files / db2qthelp-0.4.0.tar.gz
| Download URL | db2qthelp-0.4.0.tar.gz |
|---|---|
| Size | 24.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa7ddb94caa8c66c7c4ed41a14bfe972039d9a2dcbc31daaf2c6186abef93401
|
|
BLAKE2b-256 checksum How to use checksums |
8a830feda3a406ad6bb54c4ce7d4393a15bd1817b67027b8bd7ea64928e556ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Release files / db2qthelp-0.4.0-py3-none-any.whl
| Download URL | db2qthelp-0.4.0-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
834e90190fdb7c1e644694c1634d0758cddae7d1864b7291b5aad82c62736794
|
|
BLAKE2b-256 checksum How to use checksums |
9af76763ecbaa66cc54edb529eff71e78dc1a658716dc9b8769fc94d960db233
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Security for db2qthelp 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.