-
Notifications
You must be signed in to change notification settings - Fork 19
Developer Wiki
Norbert Pfeiler edited this page May 19, 2020
·
2 revisions
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 againstQWebEngineWidgets
and is not available in static builds. -
QLabel
: Supports the same CSS subset asQTextBrowser
, 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
.