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

Underline (Spellchecking) in QSyntaxHighlighter not showing in TextArea

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.7.0
    • None
    • Linux/Wayland, Linux/X11, Windows

      Hello,

      In QSyntaxHighlighter::highlightBlock(), QSyntaxHighlighter : setUnderlineStyle and QSyntaxHighlighter : setUnderlineColor don't work as intended.

      Similar to https://bugreports.qt.io/browse/QTBUG-87260, which actually never solved the underlines in QtQuickControls2's TextArea.

       

      See the screenshot:

      • QTextCharFormat::DashUnderline doesn't show.
      • QTextCharFormat::WaveUnderline doesn't show.
      • Red QTextCharFormat::SingleUnderline shows only in black.

       

      You can test it with the attached test project. highlighter.cpp highlights the problem, pun intended.

        1. Copie d'écran_20240522_124751.png
          31 kB
          Cyril Jacquet
        2. test_highlighter.zip
          3 kB
          Cyril Jacquet
        For Gerrit Dashboard: QTBUG-125575
        # Subject Branch Project Status CR V

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            skrib Cyril Jacquet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change