Files
qt-creator/src/plugins/help/qlitehtml
Eike Ziller 0efd65e07e Help: Add litehtml based viewer backend
For CMake add litehtml installation path to CMAKE_PREFIX_PATH
For qmake pass litehtml installation path via LITEHTML_INSTALL_DIR qmake
variable

Release build of litehtml is recommended.

The litehtml backend is used by default when available, you can force
QTextBrowser again with the environment variable
"QTC_HELPVIEWER_BACKEND=textbrowser".

Some things are not implemented yet:
- Text search
- Context menu
- Shift-drag to extend existing selection

Change-Id: I79f989e5fe2063de2e9832abbed19b24d7a1a1fe
Reviewed-by: hjk <hjk@qt.io>
2019-08-28 08:06:20 +00:00
..

Qt backend for litehtml

Provides

  • A QPainter based rendering backend for the light-weight HTML/CSS rendering engine litehtml.
  • A QWidget that uses the QPainter based backend and provides API for simply setting the HTML text and a base URL plus hook that are used for requesting referenced resources.

How to build

Build and install litehtml. It is recommended to build litehtml in release mode

cd litehtml
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$PWD/../install" -DCMAKE_BUILD_TYPE=Release -G Ninja ..
cmake --build .
cmake --install .

Add the litehtml installation path to the CMAKE_PREFIX_PATH when building the Qt backend