Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-140446

QTextEdit tooltip events don't use viewport coordinates

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15.19, 5.15, 6.7, 6.8, 6.9
    • GUI: Text handling
    • None
    • Any platform supporting tooltips
    • All

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            musicamante Maurizio Berti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes