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

Many syntaxhiglighers for one QPlainTextEdit are needed in order to crate modular editors

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.12.0
    • GUI: Text handling
    • None
    • All

    Description

      There are huge difficulties when I try to program modular (plugin based) text editor with Qt library. The problem is when I want to have 2 syntax highlighters: one for code coloring and second for spell checking. I want to create 2 separate and independed plugins for this. But I fail shortly because you can call:
      QTextEdit *editor = new QTextEdit;
      MyHighlighter *highlighter = new MyHighlighter(editor->document());
      MySpellchecking* spelchecking = new MySpellchecking(editor->document());
      But only last syntax highlighter will be work.
      This is approach is opposite against modular programming.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            szykcech Szyk Cech
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes