-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.19, 5.15, 6.7, 6.8, 6.9
-
None
-
Any platform supporting tooltips
A ToolTip event in QTextEdit is propagated to the internal QWidgetTextControl, eventually calling showToolTip().
The given pos is in QTextEdit coordinates, though, so if the widget frame has thick borders or, more importantly, setViewportMargins() has been used with left/top margins, the hitTest() call used in cursorForPosition() will give the wrong position.
The result is that a tooltip may not be shown even if it should (and vice versa) or the wrong tooltip may be displayed.
This will add further inconsistency to the still unresolved QTBUG-6762.