Priority: P3: Somewhat important
Affects Version/s: 5.12.5
Fix Version/s: None
Component/s: GUI: Text handling
The tooltip set on a QTextCharFormat is not displayed when using the QSyntaxHighlighter setFormat method to format a block of text.
Changing the constructor in the highlighter.cpp file from the SyntaxHighlighter example to the code below has no effect.
When hoovering the text highlighted in dark blue, no tooltips are shown, despite the `setToolTip` function call. The foreground and the font weight are applied correctly, but not the tool tip.
This bug was already reported for earlier versions of qt (
QTBUG-21553) and is still relevant.
I've linked a screeshot of the execution of the code below (sorry for the low-quality, have to take it with my phone the capture the mouse cursor)
You can use the following code to reproduce this bug (adapted from https://doc.qt.io/qt-5/qtwidgets-richtext-syntaxhighlighter-example.html).