Skip to content
Norbert Pfeiler edited this page May 19, 2020 · 2 revisions

Cheatsheet Rationale

The cheatsheet pages are .html files that are displayed in a QTextBrowser. The QTextBrowser supports a subset of CSS and clicking on anchors.

Discarded alternatives:

  • QWebEngineView: Can display the web documentation directly in KNOSSOS and supports the complete CSS set, but requires linking against QWebEngineWidgets and is not available in static builds.
  • QLabel: Supports the same CSS subset as QTextBrowser, but does not support hypertext navigation.

Opening KNOSSOS widgets directly from the cheatsheet is realized by anchors. To prevent anchor label duplication in the code and html files, the labels are defined as macros in an htmlmacros.h.

Clone this wiki locally